Resetting dial timer
Oct 31, 2018
By
Holly Heston
I created a timer using a dial. I want the user to be able to start the timer, so I paused the timeline at 1 second, then it resumes when the user clicks a transparent button I overlaid on the dial. The dial moves to 1 second when the timeline reaches 2, dial moves to 2 when timeline reaches 3 etc.
However, I can't figure out how to allow the user to reset the timer after it expires. Is there a way to reset the timeline, or is there a variable that correlates with the timeline, so I could turn the dial based on timeline variable +1?
Or is there a way to reset the page to its original state without leaving the page?
5 Replies
You could add a trigger JumpTo <the same slide> and set the slide properties to Reset to initial state.
As Michael said you can create a reset button and use the 'jump to slide' trigger (pointed at your current slide). Also if you want the timer to reset when you do that you'll need to include a trigger on the reset button to reset the dial variable back to '0'.
One other option is to use an offstage object that runs a looped motion path. This 1 sec. long path provides the "pulse" for the counter. See attached a quick example.
Thanks for both ideas. The jump to same slide wouldn't work with the way I'd set up the timer, so I modified the loop activity - didn't use the pause/resume button. Then I used the jump to slide to reset, but had to make sure the reset timer trigger was first. Excellent way to learn!
Great to hear that you figured out a solution. Good luck with your project!
This discussion is closed. You can start a new discussion or contact Articulate Support.