"When variable changes" - one use only?
May 02, 2017
I'm trying to create a menu which is incorporated into a slide master, so that I don't have to keep adding a new menu to each slide. To do this, I've added a True/False variable to open the menu.
When clicking on a button on the normal slide, it adjusts the menu variable to "True", and on the slide master, there's a trigger to show the menu layer when that variable is "True". When you then click the close button, along with closing the menu and hiding the layer, there's also a trigger to change the variable back to False.
Problem is, this only seems to work once. When I preview the slide, I can click the menu button once and it works fine, but when I then close the menu and try opening it again, nothing happens. I've tested the variable using the %variable% text box, and the variable is definitely changing back and forth as intended.
Is this an actual limitation of the "when variable changes" trigger, or something which can be fixed?
3 Replies
Hi there John,
You almost have it! All you need is one small change:
On the Slide Master Layer Properties, change the 'when revisiting' setting to Reset to initial state. Then you can open and close the menu multiple times.
I made that change to your file and attached it here. Have a look!
Thanks Alyssa! I thought I had tried that before, but maybe there was some other setting on my original file which was cancelling it out. It's working now anyway, thanks.
I would use a number variable instead this way you don't have to worry about setting it back to false.
To show the menu add a trigger to add one to the menu variable. On slide master show menu when menu variable changes.
The is easer as you don't have to track the value of the menu variable, where it may not get changed back to false.
This discussion is closed. You can start a new discussion or contact Articulate Support.