Layer trigger not appearing after all conditions are met.

Sep 04, 2020

Hello Heroes,
I'm running into something odd that I've done many times and seems not to be working at the moment, unless I missed something very small...
I have boolean variables set up. When all booleans equal true, then a layer shows up when the user returns to the base layer. I opened older files that I did this very same set up and it is working. But for some reason in this file, it's not. Anyone able to see what I'm not seeing?
I've attached my file.

4 Replies
Dave Cox

Hi Virgil,

You trigger is set to activate when the timeline on this slide begins. That is the correct method when you are returning to this slide, and then checking the variable set by other slides. However, in this instance, you are returning to the base layer from another layer, so the timeline isn't starting again. Since you are remaining on the same slide, you need to check the condition on each layer as you attempt to close that layer. 

I've set it up for you in your example.

Walt Hamilton

The key is that it works when you revisit it. The thing that you have missed is that before when it worked, you left the slide and came back to it. That is what starts the timeline, and starting the timeline is the only action that fires this trigger:

 

Check the attached file for three different ways it can be made to work.

The Original slide works because when each layer is closed, there is a trigger to jump to the current slide which is set to Return to initial values when revisited. Every time you jump to it, the timeline is restarted, and the trigger works.

the Variables slide works because when each layer is closed, it shows the Complete layer if all the variables are true.

I planned to set up the States slide to show the layer using states of objects. I like it because you can get rid of the hotspots, and use invisible objects for the click areas. They work as well as htospots, but with the added benefit that they can have states. You can trigger actions when the states change, and they can have a visited state that gives a visual indicator of which ones have been visited. I gave everybody a subtle indicator, but that can be changed. Then you can use the trigger to "Show layer Complete when state of all the ovals is visited".  Great idea, but it doesn't work. That trigger would fire when the last oval is clicked, and show the Complete layer, then show the layer corresponding the the oval that was clicked, hiding the Complete layer.

So I did some trickery with the icon that hides each layer, changing a variable when it is clicked and using that variable change to fire a trigger showing the complete layer.

Anyway, all three ways work.

Virgil Simpelo

Thank you Dave and Walt. I appreciate the help. Both of you had similar solutions to this, so great minds think alike! I rarely do these type of "returns" on the same slide, so I needed to jog my memory.
So something to keep in mind for anyone else who runs into this issue, when having all of those conditions in a trigger in the same slide is:

When it comes to variables, the variables need to be referenced in all the layers to affect the base slide. The variables, if you will, "soak through the layers into the base layer."

For States, the states have an instant change on the slide once the states are set up to trigger the final action.

Thanks again!

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