Forum Discussion
Avatars using states
Hello, I watched a video (I think Michael Allen) on using states for Avatars. I created my avatar variable. On the next slide I have a character (Andrew) and added a new state called Marilyn. I have a trigger to change the state of the character to Marilyn if the variable = Marilyn. It works on that slide. On the next slide I have the character Andrew with a new state Marilyn. I added a trigger to change the state of the character to Marilyn if the variable is Marilyn. I added a text box with a reference to the variable. When I pick Marilyn, it says Marilyn, but the character is not displaying the state Marilyn. Any ideas what I'm doing wrong?
Hi AlisonC You have a typo in Marilyn's name in the trigger on the second slide. When I fixed that, she showed up.
7 Replies
- JudyNolletSuper Hero
What's the "when" for the trigger that's supposed to change the state of the avatar based on the variable?
If the trigger is set to run "when the variable changes," it will only run if the variable changes on that slide.
If the trigger is set to run "when the timeline of this slide starts," then it should run. There must be something else happening.
Beyond that, troubleshooting is just guessing without seeing everything on the slides. Here are the best practices for uploading a .story file:
- Only include slides that are related to the problem.
- Be sure objects, layers, motion paths, and variables have meaningful names.
- If there is proprietary content, replace or delete it. For example, replace
proprietary text with “ipsum lorem” text.
- AlisonCCommunity Member
It's set to run "when the timeline of this slide starts".
I ended up with all sorts of issues when I pulled out these two slides, and it's an early draft, but the problem is here.
Hi AlisonC You have a typo in Marilyn's name in the trigger on the second slide. When I fixed that, she showed up.
- AlisonCCommunity Member
Thank you, Ginger!!! I should have picked a name that was easier to spell and type!
- axel990Community Member
Check your trigger on the second slide: set it to "Change state of Andrew to Marilyn when timeline starts if Avatar equals Marilyn," ensuring exact variable spelling. Set Andrew’s default state to Normal. Preview the full project to test. If it doesn’t work, add a 0.1-second delay to the trigger to sync the variable. That should fix the state not displaying.
- AlisonCCommunity Member
Thank you, Axel! Yes, Ginger found it, I fixed it, and it works!
Hi AlisonC.
I'm glad my colleague Ginger was able to assist you. This will be helpful for folks who come across this thread in the future.
Feel free to reach out in the community with any future questions or discoveries!
Have a great weekend!