Forum Discussion
GennaWilliamson
1 year agoCommunity Member
Variables not working with conditions and triggers
Hi Heroes,
I'm in desperate need of help with variables, triggers, and conditions. I can't share my course, due to the nature of the education and industry I'm in but I will outline what I'm tryin...
JudyNollet
1 year agoSuper Hero
I see no reason to use a custom NewState instead of Normal as the default state.
Disabled and Visited are built-in states. That means they come with some automatic functioning:
- When an object is Disabled, it can't be clicked. In other words, any triggers attached to it won't run. I assume you know this, and you are changing each icon/button to Disabled after the associated section has been completed so that the user can't return to it.
- When an object has a Visited state, it will automatically change to that state when it is clicked. (As noted above, it can't be clicked if it's Disabled.)
- Triggers that change an object to Visited often cause problems, because they're duplicating what's going to happen automatically.
- Try using a custom state instead of Visited.
I think it makes sense to use a T/F variable to track whether a section is done, because there are only 2 options: not done (False) or done (True).
You should double-check the variables in the triggers and their values. For example, add a temporary text box to the menu slide that references the variables. That's a good way to ensure the have the value you expect.
By the way, your development and troubleshooting would probably be easier if you gave meaningful names to all the objects involved in interactions.
Related Content
- 1 month ago
- 1 year ago
- 11 months ago