Forum Discussion
PatrickFinne459
3 years agoCommunity Member
Changing States when a learner clicks the object
I have inserted a picture of a media play button. To that picture, I added a state called “pause” in which the picture is replaced with an image of a pause button. The initial state is set to normal...
WaltHamilton
Super Hero
Michael has suggested the best course.
To help you with future troubleshooting, walk slowly through the two triggers you suggested. Imagine the state is Normal when the learner clicks. According to your first trigger, the state will be changed to Pause. Now that it is in the Pause state, the second trigger will change it to Normal.
If you switch the order of the triggers, it will appear to be stuck in the pause state, for the same reason.
PatrickFinne459
3 years agoCommunity Member
Thanks for the advice of walking through each trigger step slowly. I didn't catch that the second trigger would run right after the first. For some reason I was thinking that the trigger would determine which command to run based on the IF statement and run only the one that was "true."