Variable changes across slides

Hello,

I'm trying to set up an interaction whereby a variable changes from false to true once a student reaches a certain slide. I would like an object to change states from hidden to normal on a previous slide when the variable is true. That way when a student revisits that slide, a new object will appear on the screen. 

I believe I've got everything set up correctly, I've tested to see if the T/F switch adjusts an object from hidden to normal on the same slide that the T/F trigger is on and it works. However, it doesn't seem to effect previous slides.


Thanks,
Casey

3 Replies
Michael Hinze

Are you using the `When variable xyz changes` option in your state change trigger? This trigger option is limited to the slide where the change actually happens. If you want to change the state of an object on a slide based on the value of a variable that was changed on another slide then you need to set a  trigger that Change state of object abc when timeline starts if variable xyz=whatever.

Nancy Woinoski

Hi Bob, there are a couple of things you will have to do on the previous slides to get this to work.

  1. Make sure you set the "when revisiting" slide properties on the previous slides to "reset to intitial state"  - this forces the timeline to start from the beginning each time the user goes back to visit the slide.
  2. Add a slide trigger to the previous slide to change the state of the hidden object to normal when the timeline starts if the variable is true.  
Connor Tunney

This was a great help! Thank you everyone. I figured out that I could set the trigger to go "when timeline ends" so that I didn't need to reset the state of the slide. That way all the student info on the slide that had been previously filled out wasn't wiped every time you returned to this slide.