Skip to main content
B
8d ago

Make avatar works across multiple scenes

This is the problem: My first artboard is screen where user will set character avatar. Second, and all other artboards are screens with interactive animations with that avatar. How to make connection between first (avatar) artboard and all other artboards, so when the user set an avatar on the first screen, all artboards use that specific avatar for interactive animation. If anyone can suggest some tutorial that can help with this, or just explain me what can I try to make it work. I'm new Rive user, but it is very easy to learn so far.

Not sure if that is important, but I'm on Windows 11, on the Chrom browser.

Thank you

2 replies
B
7d ago

Hi Bebe. There are a couple of ways to do this depending on your setup.

The way to communicate between artboards is by exposing inputs and events. If you want to communicate from a parent artboard to a child, you'll use exposed inputs. If you want to communicate from a child to a parent, you'll use events.

Do you want your app to remember the user's avatar between sessions? If so, you'll need to communicate with your code via one of the Rive runtimes: https://rive.app/community/doc/getting-started/docxMZXGxnHR

Here's how you communicate from your code to Rive: https://rive.app/community/doc/state-machines/docxeznG7iiK#inputs

Here's how you fire events to communicate from Rive to your code: https://rive.app/community/doc/rive-events/docbOnaeffgr

Here's how

Let me know if that helps!

B
6d ago

Thank you Lance! I think that's it, I missed exposing inputs. Also thanks for the communication between sessions with code tip.

Cheers!