How to make variables not refresh with each page.
Dec 26, 2013
I am trying to make a simulation in which images change colour depending on the choices a learner makes. I made different numeric Variables, one for each image. Then I made various states for each image. So I made a trigger to relate the variable to the change in colour (E.g. When the variable = 1, the object will turn blue, when the variable=2, it will turn green)
I also set triggers for buttons, so the variables would increase or decrease. The idea was that when the learner pressed the button enough times(2 times), the image would turn green. I wanted this to span across the slides. So the learner would make a choice, the button would change the variable and bring the learner to a new slide, where the image's colour has change due to the change in the variable value.
The problem now is that the variable is reset as it goes to the next slide. Does anyone know how I can make the value of the variable not reset to 0?
5 Replies
The variable value is persistent across slide (unless you change it), you need triggers on timeline start to change the state based on the value, not when variable changes, because this trigger only works when the variable changes on that slide.
Thank you Phil! I discovered that when I was toying around just now. Do you happen to know where the option for changing the state according to the variable's value is? I can't seem to find it
You can only change a state when something happens, so you will need triggers on each slide to change the state when the timeline starts
Thank you so much Phil! Can't believe that I didn't see it before. You've really helped me loads.
Hi Aaron,
Glad Phil was able to assist you here!
This discussion is closed. You can start a new discussion or contact Articulate Support.