Forum Discussion

janeluke's avatar
janeluke
Community Member
4 months ago

Quiz score based on elapsed time

I'm developing a quiz in Storyline, I would like to be able to change the score according to how long it takes to answer each question. There is no set time restriction; question completion times vary depending on speed, with faster responses earning more points and slower responses receiving fewer. Is it possible to make this happen? Can someone help me.

Regards!

JL

  • There are several ways to create a test like this:

    1. Storyline has a variable that counts time. You can use the values from this variable.

    2. You can create a timer using JS or motion paths.

    3. You can use the time on the slide to calculate the time (this is the longest and most inconvenient method, but it will require minimal knowledge of working with Storyline.

     

    We record the time it took to answer in a variable. After the student has correctly answered the question, we count the points depending on the speed of the answer. To do this, we either need JS or it can be implemented through triggers that change the values of variables.

  • Setting up this feature using Storyline's built-in variable Slide.ElapsedTime should be straightforward. For instance, you can assign 10 points if the answer is submitted within 5000ms (5 seconds), or 5 points or fewer if the answer takes longer than 5000ms. Below are suggested triggers to accomplish this:



    The only issue anticipated with this is that Slide.ElapsedTime is cumulative time variable which means that upon revisiting or restarting the quiz it picks up for whatever value it had by the time slide is left. The conditions to assign points based on time will no longer be functional. 

    I would prefer a JavaScript solution combined with a few Storyline variables and triggers to accomplish this. Please check out my video demonstrating this solution.

    • janeluke's avatar
      janeluke
      Community Member

      Hi Nedim,

      Thank you so much for your help much much appreciated. I would appreciate if you could share your demo storyline file here. so that would be great help.

      Looking forward your reply.

      • NedimRamic-88da's avatar
        NedimRamic-88da
        Community Member

        Send me an email at nedim.ramic@gmail.com, and I'll forward it to you. I may not be able to catch notifications here, so please reach out via my private email if you need further assistance, as this setup is a bit more complex.