Problem with the change state of an object in loop

Mar 11, 2013


I would like to add a button in order to change state of an obect in order to show the state 1, when the user push again the button it shows the state 2, when it re-push the button it shows the state 4, when it re-re-push the button it shows the state normal, and go for another loop. 

But I can't do it at each time, at least, on of the state disappeared. I give you an example, if you want to look at my problem. 

Do you have any idea ? 

Thank you!


3 Replies
Christine Hendrickson

Hi Sébastien! I hope you're doing well

Just to make sure I understand, this is how you'd like to have the sequence: 

Display > Normal

  •              First Click > State 1
  •              Second Click > State 2
  •              Third Click > State 3
  •              Fourth Click > State 4
  •              Fifth Click > Reset to Normal (beginning) State

Does that look right? If so, you may have better luck using a variable for this. You could have the variable add "1" to each click, for example, then have another trigger that resets this on the fifth click (the one that comes after State 4) to "0". Trigger the Normal State when the variable equals "0". 

I've taken your original file and set this up for you, if you'd like to check it out

I hope this helps!

This discussion is closed. You can start a new discussion or contact Articulate Support.