Quiz score based on elapsed time

May 23, 2024

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

4 Replies
Alex Milyaev

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.

Nedim Ramic

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.