Forum Discussion

SethMerriam-55b's avatar
SethMerriam-55b
Community Member
3 years ago

Resetting Slide.ElapsedTime with a trigger

Hi, I am trying to reset the "Slide.ElapsedTime" variable so I can use it as a timer, that a user can reset... but I can not seem to get it to work. 

very simple trigger:
set Slide.ElapsedTime to value 0 when the user clicks button 1

The documentation on the variable doesn't say it cannot be set (though it's vague), but that is my question: is this variable read only? If not, what else should I look at to fix my issue? Thanks!

  • Hi, Seth.

    Thank you for opening a support case!

    I see you worked with Jose, who confirmed resetting the built-in variable Slide.ElapsedTime is not something that can be done in Storyline. 

    Please reach out to Jose through the case if you have additional questions. 

  • AhmedGendya's avatar
    AhmedGendya
    Community Member

    Hi Seth, 

     

    Have you reached to a solution to this problem? 

    I have a project where I need to start counting from 0, every time the user visits the slide. I also tried to reset the Slide.ElapsedTime using such a trigger, but this did not work. 

    Any advise? 

    Thanks

  • Hi, Ahmed.

    Seth might not be subscribed to this discussion, but you're welcome to contact them directly through their profile by clicking on their name and selecting Contact Me

  • I'm using the Scene.ElapsedTime trying to reset it to 0 as well, with no luck.

  • you can see which variables are writable/resetable

    "Default Value" / "Set Automatically" => "not writable/resetable"

    Jürgen

  • AlinaMolenda's avatar
    AlinaMolenda
    Community Member

    Is there any update on this matter? I also want to reset it and tried everything so far...

  • Not sure if anyone is still on this thread. I have looking at trying to use this variable.. so does what you are all talking about mean that it doesn't automatically reset when you move from one slide to another? 

    ie. My client would like to know how much time a leaner spent on each slide. I was hoping I could use this. But if it doesn't start at 0 for each slide it wouldn't work at all for me. 

    • JoseTansengco's avatar
      JoseTansengco
      Staff

      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!

      • DavidHolzemer-7's avatar
        DavidHolzemer-7
        Community Member

        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.