Forum Discussion
Show layer trigger not working
- 15 days ago
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
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.
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.
- AaronPross10 days agoCommunity Member
Great solve. I never thought to adjust variables based on an animation completing.