SL2 Object state not changing when trigger is based on variable set on another slide
Dec 05, 2014
I hope I've not missed something really basic but can anyone suggest what's wrong here?
I have two slides:
On slide 1, I set a variable to be a value 0, 1 or 2. (it comes from a slider position). The variable is being set OK, it's being displayed in a text box.
On slide 2 I have a simple object, a rectangle. It has a 'Normal' state and two other states, each a different size. I have three triggers set on this slide, which are set to change the state of this object when the variable changes to = 0, 1 or 2. This variable is also displayed OK on this slide.
But when I set the variable on slide 1 and then go to slide 2, the object state has not changed.
So, have I missed something or can object states NOT be changed by a trigger when the variable has already been set on a previous slide? The only workaround I have found is if I set a new variable on slide 2 to equal the slide 1 variable and then use this (interim) variable in the three triggers. Seems a bit tedious.
Thanks.
5 Replies
'When variable changes' is limited to the slide where the change actually happens (in your case on slide 1). Change the triggers on slide 2 to something like 'change the state of object xyz to xyz when the timeline starts' and add a condition to the triggers 'if variable xyz is equal to xyz'
You're a genius! Thanks Michael for your rapid response, it's most appreciated.
Glad that Michael was able to assist you here Tim. Thanks for popping in with an update :)
Thanks for this post and Michael's response. It fixed my problem as well.
Love to see the older threads continuing to assist. Thanks for popping in to share D!
This discussion is closed. You can start a new discussion or contact Articulate Support.