Change state of a button when a variable = true

Jun 05, 2014

Hi all,

I do not know exactly what I am doing wrong, but I do not manage to change a state of a button in a slide (menuslide), when a certain slide is viewed.

I would like to display a certain shape (with initial state hidden) on a menu slide, when a user go back to that menu having displayed a certain slide.

I did following:

  1. created a shape with initial state hidden
  2. created a true/false variable with default value = false
  3. created a trigger that this adjust variable when timeline of specific slide ends
  4. in my menu slide created on the initial shape a trigger that change status to normal when (this could be my error) variable changes (the variable created for completion slide) on condition == true

It doesn't work and I do not understand what's wrong. Perhaps it is even easier as I think...

Thanks in advance for any help you can give me!

Silvia

3 Replies
Antony Snow

Hi Silvia,

It sounds like the cause of your issue is that the trigger on the menu slide is set to change the state of your hidden shape to normal when the corresponding variable is equal to true.

If you amend this trigger so that the state is changed to normal when the timeline of the menu slide starts and add a condition that the corresponding variable is equal to true, you should see the state change as required.

You will also need to ensure that the trigger on the content slide that adjusts the variable is above the trigger that returns the user to the menu slide - SL executes triggers from top to bottom so you'll want to make sure that the variable is adjusted first.

I hope this helps

Antony

This discussion is closed. You can start a new discussion or contact Articulate Support.