Forum Discussion
Replay/Resume Saved State/Button States
First of all, please accept my apology if I neglected to find this already answered- I took time search but did not find what I needed.
I have a selection slide with multiple buttons that each open an information page. When users return, the slide is set to Resume saved state so the visited button states are retained. There are several, and this is a great feature to help users keep track of what they have watched so far. I have built successful triggers to keep the narration from playing each time they go back to this home slide.
The issue: If a user wants to hear it the base slide narration again, the play button doesn’t restart the audio unless they manually drag the seekbar back.
I can’t set the slide to Reset to initial state because that breaks the button state tracking.
What’s the best way to let users manually replay the narration without resetting the slide?
I have attached a file if reference is needed. I would so appreciate any insight on this!
4 Replies
- JudyNolletSuper Hero
You could put the audio on a layer. Set the Slide Layer Properties to "Reset to Initial State." Create a T/F variable to track whether the audio has already been played. On the layer, include a trigger to hide the layer when the timeline of the layer ends, and another one that changes the "audioPlayed" variable to True. There could also be a trigger to show a "Replay Audio" button on the base when the layer's timeline ends.
On the base, add a trigger that shows the layer when the timeline starts on the slide with the condition that audioPlayed = False. Also add a trigger to the "Replay Audio" button that shows the layer.
- JudyNolletSuper Hero
BTW, I noticed that the .story file has "when variable changes" triggers. But the variable changes don't happen on the same slides as the triggers. Thus, those triggers will never run, because the program doesn't "see" the change on another slide.
Instead, you can use a "when the timeline starts on this slide" trigger. Even when the Slide Properties are "Resume saved state," a "when the timeline starts on this slide" trigger will still run. Just add conditions to control it as needed.
- MaryLisaHarper-Community Member
Judy, thank you so much! I am learning this as I go, and your help is great! I am not surprised that I have extra triggers.
My issue now is getting a replay (if wanted) when the user returns to the home screen. Again, thank you.
Related Content
- 7 months ago
- 2 years ago
- 4 months ago