Forum Discussion
Resetting Drag and Drop to Original State
Hi everyone!
I have created a drag and drop interaction, and the learner has multiple attempts to get it correct. I have the slide resetting to the original state after each attempt in order to try again. Here's my question. I don't want the audio to replay each time the learner returns to try the drag and drop activity again. How do I stop it from playing each time it resets to the original state? I feel like I've tried everything, and I just can't figure this one out.
Thank you so much for any help you can give me!
Here's one way to do it.
Create a True/False variable i.e. "Screen1Complete" with a setting of "False". Now create a Layer on the screen and name it "Audio". Put the audio on that layer instead of the base layer. On the base layer add a Trigger that says Show Layer "Audio" when the timeline starts on this layer "if" variable "Screen1Complete" is = to false. Next, add a Trigger to the "Audio" layer that says Adjust Variable "Screen1Complete" to True when the Timeline Ends on this layer.
So the first time the user sees this screen the "Audio" Layer Shows because the variable is set to "False". Once the "Audio layer plays it changes the variable to "True. The next time they go to this screen, the variable has been set to "True", so the "Audio" layer doesn't show and no audio plays.
I hope that helps.
- MichaelGallagheCommunity Member
Here's one way to do it.
Create a True/False variable i.e. "Screen1Complete" with a setting of "False". Now create a Layer on the screen and name it "Audio". Put the audio on that layer instead of the base layer. On the base layer add a Trigger that says Show Layer "Audio" when the timeline starts on this layer "if" variable "Screen1Complete" is = to false. Next, add a Trigger to the "Audio" layer that says Adjust Variable "Screen1Complete" to True when the Timeline Ends on this layer.
So the first time the user sees this screen the "Audio" Layer Shows because the variable is set to "False". Once the "Audio layer plays it changes the variable to "True. The next time they go to this screen, the variable has been set to "True", so the "Audio" layer doesn't show and no audio plays.
I hope that helps.
- AmandaKulik-8b2Community Member
This is so helpful! Thank you so much! I'm going to try it now!
- AmandaKulik-8b2Community Member
It worked perfectly! I'm so happy to have this new tool in my Storyline toolbox!! Thanks again for your help!
- MichaelGallagheCommunity Member
You're very welcome!
- MichaelGallagheCommunity Member
I'm assuming you are resetting the slide for retries because the Dropped items don't reset on "Try Again". If so, take a look at the Storyline file attached. It uses Motion Paths and Triggers to reset the Drag items you got incorrect so the user can retry.
Have fun!