True/False Variable to Change State of Object
May 19, 2015
I know this should be simple, but somehow I'm not getting the right result. I need an object on my menu slide to change when the timeline starts on another slide in another scene.
I've made a variable called CompleteDiagram with the default value False, and set a trigger for it to change to True when the timeline starts.
Then I have a trigger on my menu for the object to change when CompleteDiagram changes with the condition that it is true. When that didn't work I changed it to if CompleteDiagram is Not False and that didn't work either.
What am I missing?
8 Replies
Hi Sherrie,
I think the problem is that you have the slide properties set to reset to initial state when revisiting. If you change it to Automatically decide it works.
Thanks Cary,
Ugh - I was so hopeful that was it, but I just tried it and it didn't work for me. I changed both slides to decide automatically. I tried it in both my large project and the small one attached. What else can I be missing?
Sorry about that I couldn't figure out what you wanted it to look like when you were successful.
Try changing the trigger to:
Action: Change State of
On Object: Diagram
To State: Complete
When: Timeline starts
Object 1.1 Main Menu
On Condition
CompleteDiagram == Equal to True
YES!!! That was it!! Thank you SO much!
This is common mistake people make with variables.
On your second slide you set the value to True for your variable. But when you go back to your first slide you want to change the diagram to complete when the variable changes.
But the variable was changed on the second slide and won't change again on the first slide causing that trigger to fire.
You need to change the trigger on the first slide so it checks the value of the variable for true when when the timeline starts.
Try to remember if you want to fire a trigger when a variable changes it needs to happen on the slide where the change happens.
Cary beat me to it.
Great minds think alike, or is it fools seldom differ. Whatever it is I'm glad we can help each other learn.
Hi Sherrie,
Glad you got the help you needed here from Cary and Gary - let us know if you need anything else.
This discussion is closed. You can start a new discussion or contact Articulate Support.