Forum Discussion
Display total project time using new elapsed time variables
Hi!
Ive updated Storyline and love that there are new features with the elapsed project / slide / scene built in variables.
I saw a few tutorials on how to do a few things, ie mark a course as complete when a certain time reached, or do something (ie show a layer) once a cetain time is reached. But there was a tutorial missing for one thing mentioned could be done.
Is there a way to display the elapsed time in seconds or minutes?
For example, an elearn has a duration of 30mins, and id love to display at the top the time spent so far as a count up or count down.
I tried inserting it like this... "Elapsed time: %Project.ElapsedTime% / 30mins" however the project elapsed time counts in milliseconds (in the thousands) whic is distracting. Is there a way i can use other variables or triggers to convert this counting so it displayed in seconds or minutes?
- VandaHalszCommunity Member
Hi Glenda, thanks for the example SL file, I was struggling myself to create the timer.
Regarding the reset: you can't reset the Scene.ElapsedTime triggers, but you can reset MinElapsedTotal + LeadingZeroSeconds + SecElapsedInMin and your solution still works :)
(at least on a Slide.ElapsedTime level)
Maybe put it on the Reset Button?
Thanks again!- GlendaDeHoff-0cCommunity Member
Thanks, Vanda!
I'll give that a try!
- KariMuellerCommunity Member
Any way to resume project elapsed time if a learner exits the course and relaunches? It looks like the project elapsed time currently resets in this scenario.
Hi Kari,
I can confirm that the elapsed time variables will reset each time a learner exits a course. This is the expected behavior for these built-in variables right now. I'm curious to see if there is a way to retain the value of the project elapsed time variable using Javascript. For this, I'll let members of the community chime in so they can share their experiences!
- KariMuellerCommunity Member
I tried sending the elapsed time variable to a custom variable but I'm still having issues getting it to continue on relaunch. I'm curious, how are people setting up course completion with a time requirement (1 hour). Currently, I am allowing users to get to a acknowledgement screen to complete the course when the project time elapsed is 1 hour. That doesn't work if someone exits and relaunches the course. Is the only way to do this with JavaScript? Am I missing something. It seems strange that Articulate wouldn't account for this somehow, as it is a pretty common scenario for developing training.