Triggers and Returning to Normal State

Mar 07, 2013

I am trying to create two triggers for one shape - where when the user clicks the shape the first time, it changes states to "new state" and when they click it a second time, it changes back to normal.  I've given the shape two triggers, both with conditions.  The first trigger is "change state of Rectangle 1 to New State when User Clicks Rectangle 1 with the condition that Rectangle one's state is equal to Normal." and the second trigger is "change state of Rectangle 1 to Normal when User Clicks Rectangle 1 with the condition that Rectangle 1's state is equal to New State."  However, this is not working.  The first trigger will work on its own, but as soon as I add the second trigger, nothing works.  What else do I need to do to make this work?

36 Replies
Terry McDonald

Here is a couple of examples of the ways I change states using variables.

The first example uses three triggers and a True/False variable.  The variables value is toggled with a NOT assignment every time the shape is clicked.  The shape is then set to the correct state based the true/false value.

The second example uses a number variable and six triggers (two triggers plus a trigger for each state to cycle through).  Each click increments the number variable by 1.  The number variable is then checked to see if it exceeds the number of states and if so resets to 0.  The shape is then set to the correct state based on the number value.

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