Using Variable to Change an Object State
Jun 20, 2014
By
Andy Whitman
Working on a project that requires different objects across different slides to change states based on the numbered variable. I attached a simple example of what I'm trying to do.
When you click the square on the first slide, it should increase the number variable by 1.00. On the second slide, the first oval is set to change states when the variable is equal to or greater than 1.00. But it's not changing states! I think it's something simple that I'm overlooking ... Please help. Thanks!
6 Replies
Ok, I realize it works if you change the trigger from "When: Variable Changes" to "When: Timeline Starts" but I think it should still work both ways. I don't see any reason why my original option wouldn't work.
Hi Walter,
Please find attached a revised version of your example that changes the state of oval 1 as expected.
Basically, I amended the trigger on slide 2 to change the state of oval 1 when the timeline of slide 2 starts and used the condition you had already set.
I hope this helps
Looks like you already found the solution
Thanks for your response Antony. But yeah, does anyone know why my original oprion won't work?
What if you have a variable trigger on the same slide as one of the objects being changed? Then you'd have to set up two variables (one like my original post and one when the timeline starts). It doesn't seem logical and maybe it's a technical deficiency in the program -- I don't know.
Hi Michael, thanks for the explanation, It helps clear up the picture a little. Rather than think of it as when the variable changes and for all time after, it's more of a single moment of time when the variable changes and never again.
Now I know both the workaround and the 'why.' Thanks guys.
This discussion is closed. You can start a new discussion or contact Articulate Support.