Can someone take a look at the story file?
Mar 27, 2017
Hi!
I'm having the following issue. I have tw0 slides and want the custom Previous/Next buttons to appear on the screen when the slides are visited for the second time.
To do this, I created a variable "SlidePlayed" (value 0), added a trigger to change the value of the variable to 1 when the slide ends, and another one to show the layer with the Previous/Next buttons when timeline starts if "SlidePlayed" equals 1.
This is working on other slides, but for some reason it is not working in the first slide (see storyfile).
Can anyone take a look??
7 Replies
Hi Pamela
trigger order is important. You had the 'jump to slide' trigger above the 'change variable' trigger so it was never executing. Change the order and see if that works how you want
The trigger that adds one to the score is after the jump to trigger so will never work, you need to move it above the jump to trigger.
An easy way to test this sort of thing is to add a shape or textbox on your slide with a a reference to the variable you are trying to change, this way you can see if the variable has changed or not.
I thought the first trigger in time was the first trigger that appears under the object. Is it the other way around?
trigger fire from top to bottom your triggers are in the order of
Jump to
Adjust variable.
To work they need to be swapped around
Hi Pamela
this is how you had the triggers - so when the user clicks the hotspot the action is to jump to slide 1.2.2.
In this case the 'add 1.00' to the variable doesn't happen because the user has left this slide and when they return, the variable hasn't changed so doesn't show the layer.
When you put the triggers in the following order, the variable adjusts (+1) and then jumps to slide 1.2.2.
When the user returns to this slide, the variable has changed so meets your requirement to show the layer.
Thank you both for your feedback!
Additionally, if the user visits a third time, it is likely the layer won't show unless you change the trigger to show if variable is >= (greater than or equal to) 1. It will add 1 every time the user clicks, but show the layer only if the variable is 1.
This discussion is closed. You can start a new discussion or contact Articulate Support.