Forum Discussion
Replay/Resume Saved State/Button States
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.
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-28 days agoCommunity 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.
- JudyNollet28 days agoSuper Hero
You're welcome! Pay it forward when you can. 😊
And, in case you're interested...
- Top 10 Tips for New Storyline Users | Articulate - Community
- TIP: The Eightfold Path of Troubleshooting | Articulate - Community
- Member: JudyNollet | Articulate - Community (Go to the "Newest Topics" tab to find my other Tips and Primers)
Related Content
- 7 months ago
- 2 years ago
- 4 months ago