Cycling through states

Jun 09, 2017

I have an object with three states that needs to change every time the user clicks on the bottle. but when the student clicks on the object, it only goes to one state and not to the next one or the normal state.

1 Reply
Walt Hamilton

If you can live with two states, there are built-in triggers that cycle between the Selected and Normal states.

If you have to have three, you will need a variable and a bunch of triggers to:

1. add 1 to the variable

2. set it back to 1 if it is greater than 3

3. set the state to state 1, if the variable = 1

4. set the state to state 2, if the variable = 2

5.set the state to state 3, if the variable =3

You cannot use Selected as one of your states, and personal experience suggests that you'll be happier if you create three states, rather than trying to use Normal.

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