Forum Discussion
JohnHancock
12 years agoCommunity Member
Change States When Object is Clicked on Multiple Times
Is there a way to change the state of the same object multiple times, simply by clicking on the object? For example, I want to change a shape from red to blue to green by clicking on the shape. Thi...
WaltHamilton
10 years agoSuper Hero
If you use only current state to determine whether to change or not, the character will always change to the last trigger's state.
You need an independent, outside, impartial observer (like Wendy's variable) to declare what state to change.
If you change based on the current state, the state will change twice. Notice that the variable only changes once, without the need for a condition, so it is reliable.
Related Content
- 10 months ago
- 4 months ago