Forum Discussion
Resetting Slide.ElapsedTime with a trigger
Hi David,
If you're planning on using the Slide.ElapsedTime, this variable will give you the cumulative elapsed time a learner has spent on a slide. Some notes on using this variable:
- It will reset to 0 when you move to a different slide
- You cannot manipulate the value of this variable using triggers. It is strictly a read-only variable.
You can check out this article for more information on built-in variables.
Let me know if you have any questions!
Thanks Joe!
Your first note answered my question.
- It will reset to 0 when you move to a different slide ... thats pretty much what I need.
- JoseTansengco3 years agoStaff
Glad to help!
- DavidHolzemer-73 years agoCommunity Member
Hey.. quick follow up question then :-) Can I then take the value stick it in a variable to divide it to get seconds? .. I'm planning to capture using xAPI
- JoseTansengco3 years agoStaff
Yes, you can capture the current value of the Slide.ElapsedTime variable and assign in to another variable in your slide, similar to what is shown here:
Since the value of Slide.ElapsedTime is constantly changing, you'll only assign the value of the variable at the moment that the trigger was fired.