Using a variable to show a layer
Jun 12, 2013
By
Sheri Nelson
I would like for a layer to show after the user has clicked a hotspot at the end of a screen recording completed using Storyline. I have a variable set to change to True once the user clicks the hotspot in the screen recording(Try it mode). The variable does change, but the layer does not show after the lightbox closes.
The trigger I have set is Show layer Quiz when tryit changes. I used a reference variable to make sure it tryit changes from false to true. It does.
Any suggestion?
10 Replies
Sheri:
I think I get it, but just to make sure you might want to upload a screenshot, particularly important would be the triggers panel on the right. You might try moving the "show layer Quiz" trigger up (i.e. have it be the first trigger in the list). Sometimes ordering of triggers makes a big difference.
Hello Sheri,
Did you add a trigger to show layer once the variable is set to true?
In your case, you have to add a trigger on the main slide that says, show layer "title of layer you want to show" when Timeline starts of main slide when "variable = true"
Hope this helps. Let me know if you have questions.
Donna
I tried both of those and it still didn't show. I attached screen shots.
Main slide and triggers
Top of triggers for main slide
Bottom of triggers for main slideLight box where hot spot is clicked
Triggers for screen recording
Hello Sheri,
Can you move the trigger of setting the variable to True to the very top please and see if that works.
Order of triggers are very important. FYI.
Donna
Hey Donna,
I did that and it still didn't show the layer. I did notice that the timeline doesn't restart when the lightbox closes. I changed the show layer trigger to 'Show layer Quiz when variable changes if tryit is equal to True'
That didn't work either. I may just have to come up with another idea. I am trying to create this:
When the user completes the Try It mode of the screen recording by clicking the logout hotspot, a layer will show asking them if they are ready for the quiz. They can either click no to go back to the current slide or yes and be taken to the quiz.
Thanks!
Just guessing here, but maybe on the trigger that shows the layer you need to add "WHEN timeline starts" & "IF variable tryit is = to true"
Worth a shot, I would think. And yeah, have this bad boy trigger at the top of triggers panel.
Thanks guys! I got it. I had to set the trigger to this:
Show layer Quiz when the timeline ends and if tryit is equal to True.
The timeline had already ended by the time the user gets to this point and doesn't restart when the lightbox closes.
Cool, Sheri. Had a feeling you needed to add that timeline bit.
Just fixed my issue as well, thanks guys!
Glad that this thread was able to assist you as well Tori :)
This discussion is closed. You can start a new discussion or contact Articulate Support.