Change state to hidden based on variables

Feb 13, 2015

Hi everyone. I am sure there is an obvious reason as to why this doesn't work, but I'm a little stumped.

I have a base layer with:

  • a shape and some text in it
  • Two transparent buttons

Each of the buttons shows a new layer with some additional content. After reviewing each of the 2 new layers, they come back to the base layer.

I have a variable for each of the 2 new layers that get set to "true" when the user is done with them.

The problem is I can't get the shape/text box on the base layer to disappear when returning to it. I've tried  several things and none seem to work.  even have the 2 variables showing on the screen as "true" when coming back, so I know that works properly. I just can't get the box to go into the hidden state.

Am I missing something obvious?

I'm going to try and share a link here to a .story file to see if this works: https://www.dropbox.com/s/mzx42ym3rjqc1lw/Problem.story?dl=0

 

 

6 Replies
John Krikorian

OK, I answered my own question. Well, not really. I found a workaround.

On each of the 2 new layers, I added a trigger to the "done" button that says, if the variable from the other layer is complete, then set the text box to hidden on the base layer. That seemed to work.

But there's no way to do this *from* the base layer, apparently. How odd.

Norm Cousineau

Hello John,

I can't open your file, it says it may have been corrupt or created in earlier version.

Do you have a trigger that says "change state of button to hidden when variable changes and variable == true"?

How about change state of button to hidden when it's clicked. So 2 triggers on same button , first changes the state, the next shows the layer.

 

John Krikorian

Yeah, I found out a bit more.

This does NOT work:

Change state of (my text box name here) to state HIDDEN when TIMELINE STARTS on object 1.1 (Slide name here) on condition

Extra layer 1 variable == true

Extra layer 2 variable == true

This seems to work: ( two triggers needed)

Change state of (my text box name here) to state HIDDEN when VARIABLE CHANGES variable Extra layer 1 variable on condition

Extra layer 2 variable == true

Change state of (my text box name here) to state HIDDEN when VARIABLE CHANGES variable Extra layer 2 variable on condition

Extra layer 1 variable == true

Norm Cousineau

Hi John,

I was able to open the attachment this time. I think you can simplify by just adding a "Selected" state to each button. That's one of the default states in Storyline. Then delete the button from that state. So now when you click it it will hide without a trigger or variables. I also noticed a few extra triggers in the triggers panel which could cause unexpected behavior. I played with the file and attached screen shot.

John Krikorian

Thanks Norm! That's more efficient, but it doesn't affect my problem directly.

I'm trying to make the text box disappear. The buttons were already working OK.

I was able to figure it out though.

I added a trigger to the caption itself to change to hidden if *all* of the buttons are in the state of visited. That worked well. it's a much easier solution than what I figured out above.

Adding a .story file in case it helps anyone else.

I appreciate the help!

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