Adjust Variables - Avatars

Jan 23, 2024

I am working with variables where I am using avatars. I used the button set so they can only choose one or the other. When the user clicks the Next button,  each avatar shows up on the next screen as selected. If you click the previous button to start again, the same avatar shows up when clicking the Next button no matter which one you choose from the first slide. I'm posing this question because a learner just might decide to switch avatars (just for the sake of just trying it). I need to add a third avatar but would like to determine the issue on this part before I proceed. Attached is a sample the scene I'm working with. If there is an old post already out there with this issue, please let me know. Thank you. 

2 Replies
Tom Kuhlmann

You can simplify your construction:

  • Create a single var for the avatar: varAvatar
  • Set the varAvatar = to character clicked (Renita or Thomas)
  • On the next slide set state of guide to Renita/Thomas is varAvatar = either one

Also, on slide 5.1 you wouldn't need all of those selected triggers. Assuming you continued with your path, you create a selected state for each character and then select both and right click to create a button set.

Then you can get rid of the set state triggers. But if you go with a single avatar = variable it's easier.