Hi, I have 4 objects (characters) added on the screen. After clicking an object, the object state is changed to "Visited" which means the object is grey out. However, the object state will change back to normal if clicking the object again. How can the object state stay the same after one clicking??
1. The activity this wizard performs is built into the object, so this trigger isn't needed. Sometimes (not always) writing triggers using built-in states (like Selected) can cause problems.
2. When objects have built-in states, each state will perform the action that is hardwired into it. Thus if you have an object that is "Visited" , and you click on it, it will change to selected. If you hover over it, it will change to "Hover".
That is why I prefer to use custom states. I have to write the triggers, and use variables, but I have exact control over the states. The story posted here uses variables and triggers to change and protect the states of the buttons. See if it can help you.
3 Replies
You may perform the following steps.
1. Create a trigger.
2. Criteria should be
change state of "Character 1" to "normal" when the user clicks "outside Character 1"
Hope this works!!!
Two things:
1. The activity this wizard performs is built into the object, so this trigger isn't needed. Sometimes (not always) writing triggers using built-in states (like Selected) can cause problems.
2. When objects have built-in states, each state will perform the action that is hardwired into it. Thus if you have an object that is "Visited" , and you click on it, it will change to selected. If you hover over it, it will change to "Hover".
That is why I prefer to use custom states. I have to write the triggers, and use variables, but I have exact control over the states. The story posted here uses variables and triggers to change and protect the states of the buttons. See if it can help you.
Hi Sharon,
To back up some of what Walt shared, I also did want to share the information here in regards to the definitions of the built in states and how they'll behave.
This discussion is closed. You can start a new discussion or contact Articulate Support.