Hi Saffir, you don't actually need a variable for what you are trying to do. All you need to do is have the button change the state of the rectangle to bright on click. I have made a change to your file and uploaded it here so that you can see what I mean.
You really only need to use variables if you want some value or action to persist over a number of SL slides.
But your logic should also work fine. I think the issue with your version is that the Slide Trigger to set when the Timeline Starts. When the Timeline Starts, the variable is false and so it doesnt change the Rectangle 1 to bright. I think it should be changed to:
Nancy, thanks for the reply. I should have explained that I need to do it this way for another project I'm doing. The variable must be stored and used
Sayuj, you're right. From what I've seen in other demo projects, I got the impression that "when timeline starts' meant 'anytime during the slide'. Using your suggestion, it worked, confusion cleared. Thanks.
Here is another issue related to that. How do you flop a variable from true to false when a user clicks a button? This is what I've used below, but it only changes the variable once and then quits. HELP!
Storyline allows you to apply multiple triggers to the same object. You can also apply triggers to master slides as well as content slides. Here are the rules regarding the order in which all these triggers get executed when users view your published course:
If there are triggers on the master slide as well as the content slide, the master slide triggers get executed first.
If there are multiple triggers on the same object that are triggered by the same action (such as "on click"), the triggers get executed in the same order in which they appear in the Triggers panel in Storyline. (You can use the Up and Down arrows to adjust the order of triggers.)
Thus, you'll need to think about what your triggers are doing. In one trigger, you're setting the value of bright to False if it's True. In the next trigger, you're setting the value of bright to True if it's False. In that scenario, the ending value of the Bright variable will always be True.
Sayuj, you're right. From what I've seen in other demo projects, I got the impression that "when timeline starts' meant 'anytime during the slide'. Using your suggestion, it worked, confusion cleared. Thanks.
Hi Saffir,
Glad I could be of help... Found the below note about Timeline Starts trigger which is very helpful.
8 Replies
Hi Saffir, you don't actually need a variable for what you are trying to do. All you need to do is have the button change the state of the rectangle to bright on click. I have made a change to your file and uploaded it here so that you can see what I mean.
You really only need to use variables if you want some value or action to persist over a number of SL slides.
Hi Saffir,
Nancy is right...
But your logic should also work fine. I think the issue with your version is that the Slide Trigger to set when the Timeline Starts. When the Timeline Starts, the variable is false and so it doesnt change the Rectangle 1 to bright. I think it should be changed to:
When : Variable Changes
Variable : bright
On Condition : bright = = Equal to True
Nancy, thanks for the reply. I should have explained that I need to do it this way for another project I'm doing. The variable must be stored and used
Sayuj, you're right. From what I've seen in other demo projects, I got the impression that "when timeline starts' meant 'anytime during the slide'. Using your suggestion, it worked, confusion cleared. Thanks.
Here is another issue related to that. How do you flop a variable from true to false when a user clicks a button? This is what I've used below, but it only changes the variable once and then quits. HELP!
Hi Saffir,
Storyline allows you to apply multiple triggers to the same object. You can also apply triggers to master slides as well as content slides. Here are the rules regarding the order in which all these triggers get executed when users view your published course:
If there are triggers on the master slide as well as the content slide, the master slide triggers get executed first.
If there are multiple triggers on the same object that are triggered by the same action (such as "on click"), the triggers get executed in the same order in which they appear in the Triggers panel in Storyline. (You can use the Up and Down arrows to adjust the order of triggers.)
Thus, you'll need to think about what your triggers are doing. In one trigger, you're setting the value of bright to False if it's True. In the next trigger, you're setting the value of bright to True if it's False. In that scenario, the ending value of the Bright variable will always be True.
Thanks Brian, that helps. I misunderstood the sequence. The guys put me straight at http://community.articulate.com/forums/p/12509/74938.aspx#74938
Hi Saffir,
Glad I could be of help... Found the below note about Timeline Starts trigger which is very helpful.
Source : http://storylineauthors.com/?p=777
Great site, and thanks for the tip - makes a lot of sense now!
This discussion is closed. You can start a new discussion or contact Articulate Support.