Any way to stop audio from playing on 2nd attempt interaction on slide reset?

Dec 18, 2020

Hello-

I created a drag and drop interaction that has two attempts, on the second attempt the slide resets to initial state, which is great, but there is audio on the slide that starts over as well. Is there an easy way to have the audio file not play on the second attempt?

Please let me know. Thanks!

5 Replies
Ned Whiteley

Hi Lea,

You could create a True/False variable that is changed to True when the first attempt is complete and then have a condition for the audio to only play on the slide when the variable is False. The audio would then play during the first attempt, but not the second. This would not be affected by the slide being reset as it would not reset the variable.

Lea Flynn

Hello!

Thank you for the info. Do I create this on the base layer, or within my try again layer where my other second attempt variables live?

Also, any chance you can show me an example of what the variable and condition would look like? Is the variable tied to my already existing try variable? Do I create a new type of variable? I am a novice at this stuff.

Please let me know. Thanks!

 

Carolyn Kunz

Hi Lea, the answer is both.  The base would have the T/F condition to not play the audio when the variable is T when the timeline starts. The layer would have the condition to change the variable to T when the timeline starts. I've applied the variable on slide 1.1 of your project so that you can see how to do it.