Forum Discussion
Button won't change state
- 4 months ago
The trigger to change the button to Normal runs when the timeline starts.
That trigger runs when the user first visits the slide. But by the time the user views the layers and the variables change to True, the slide's timeline is already done.
You need to use a trigger that will run after the variables change. For example, put a trigger on each layer with the same conditions, and have it run when the layer's timeline ends.
You did well to set the variables when the learner is finished with the layer, rather than when it begins. If you change it at the beginning, they can move on without finishing the layer.
The question now is, what action on the base changes the button to Normal?
There needs to be something happen that will initiate the trigger that changes the state.
I generally connect it to the ScenarioBttnX_Done. If they must visit the layers in order, you can use it just on Scenario3. If you are allowing them to visit the layers at random, then you need one on each layer. It looks like “Change state of Button to Normal when user clicks ScenarioBttnX_Done if AliceVisited = True AND KarlVisited = True AND TiffanyVisited = True”. Be sure to put it in the list after the trigger that changes the variable.
Thank you so much! This fixed it.
- WaltHamilton4 months agoSuper Hero
You're welcome. PIAWYC (Pass it along when you can.)