Reset Drag and Drop WITHOUT Resetting Attempts
Mar 10, 2022
By
Shi Almont
I have a drag and drop quizzing slide in my project. Students get three attempts. I want the drag and drop slide to reset to its initial state (so the drag and drop items return to their word bank) after each incorrect attempt. I added the trigger "jump to this slide" to my Try Again layer and set up the base layer to "return to initial state" when revisited. While this resets the drag and drop items, it also reset the student's number of attempts--I don't want the student's number of attempts to reset. I've tried working with the variables on my Try Again slide, but variables are my weak point in Storyline. Help!
2 Replies
I'll take a look at your project. in the mean time, here's something that may help you get a better handle on variables.
A couple of things.
You were on the right track with your variables, except for these triggers:
Once you jump to a slide, it interrupts the execution of triggers. All the triggers below the jump are cut off, and none of them execute. So this variable is never changed. Move it above the jump trigger, and it will work.
Even if it does work, there is a still a problem. As you noticed, jumping to the slide resets the built-in number of attempts. you can use your variable to keep track of the attempts, and show the appropriate layer, but it won't grade and track the results . Using the Submit trigger depends on the number of attempts variable, and using your variable ( which would require more triggers to show the correct layer), doesn't track. So the only tracking you would get would be when they get it correct.
In the attached sample, I used 0 - length motion paths to return the drag objects to their original places, which allows you to just hide the try again layer, and use the built-in magic for tracking.
Just a simple FYI, you don't need this trigger:
In the layer properties, there is a setting for each layer to hide other layers when it shows, and by default, it is set to On.