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?
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.
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.
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.
5 Replies
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.
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!
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.
Carolyn-
THANK YOU SO MUCH! You are a life saver. I was on a deadline today, and this came at the perfect time.
Have a safe and happy holiday!
I'm glad that I could be of help. :)