Forum Discussion
Show layer trigger not working
Good morning,
attached a slide where I would like that layer "time out" will be showed when the given time runs out (7 seconds). The trigger Showlayer that you see doesn't do the job while if I change it in "jump to next slide" it works...
Can someone please help?
Thank you
While there are simpler ways to do this, all you need to do here is adjust the order of the triggers and disable any unnecessary triggers to make it work.
Timing 1 LayerTiming 2 Layer
- NedimCommunity Member
While there are simpler ways to do this, all you need to do here is adjust the order of the triggers and disable any unnecessary triggers to make it work.
Timing 1 LayerTiming 2 Layer
- FrancescoBerio-Community Member
First of all thank you. Second, I feel kind of stupid caus that was obvious, I should have understand that by myself when I checked at least 20 times the triggers and their order.
But if you have time, can you explain me "While there are simpler ways to do this...". I would like to learn a simpler way, if there is one. Thank you again.
- NedimCommunity Member
In your interaction, you can simplify the countdown by using a single layer, removing the need for the "Timer2" layer and any duplicate triggers. Here’s how:
- Create a shape and motion path:
- Place a shape on the layer to act as your visual timer. If you don’t want it visible on the slide, you can place it offscreen.
- Add a motion path animation to this shape with a duration of 1 second. Set the animation to start when the layer’s timeline begins.
- Set up the animation loop:
- Add a trigger to move the shape along the same motion path each time the animation completes. This will create a loop, with the animation repeating every second, effectively creating a 1-second interval.
- Update the timing variable:
- Add a trigger to subtract 1 from the timing variable each time the shape’s animation completes. This will count down your timing variable by 1 every second.
- Display the timeout layer:
- Finally, add a trigger to show the timeout layer when the timing variable reaches 0.
Of course, this is only a suggestion. Your interaction works perfectly well as it is, and there's nothing wrong with having your timer running across two layers. This setup is just an alternative to simplify things if you'd like to reduce the number of triggers and layers involved.
I’ve attached the .story file used for this presentation for your reference. - Create a shape and motion path:
- AaronProssCommunity Member
So with my fix, I had it switching layers only while the Time value was > the value = 0. It was going to continue to flip layers and never show you the times up layer. You needed to stop the countdown.