Forum Discussion
Resetting variables on return to slide
- 27 days ago
Hello,
I believe your problem is that you have a trigger that says "Show incorrect layer when the value of a variable, such as field1, changes." If you think about it, your variable is changing at the beginning of the timeline because you have a trigger to set the value to blank when the timeline begins. Therefore, the variable is changing at the beginning of the timeline, the field value is incorrect, and thus you are getting the incorrect feedback.
The solution could be to change when the incorrect layers are shown. Instead of showing the incorrect layers when the variable changes, try changing the trigger to be "Show layer incorrect 1 when field 1 loses focus." After the user enters their text and clicks away or perhaps tabs away, the trigger should make the incorrect layer show up if the number does not equal what you want.
I have attached a revised version of your project that seems to work.
If this solves your problem, please mark it solved. Otherwise, feel free to ask a follow-up question.
I have an add-on question, if that's ok. Is there any way to set a True/False variable to blank upon the return to the slide. The first time the user gets to the slide, the variable is blank (or my "incorrect selection" layer would become visible). After it has been selected, the only option I have to reset it to is True or False, not blank.
True/False variables are either True or False, they can't be blank. But you can reset them to their original value, and ensure the events you're triggering only happen at a certain time or cue point when its value changes again.
Related Content
- 11 months ago
- 22 days ago
- 11 months ago
- 11 months ago
- 11 months ago