PennController for IBEX › Forums › Support › Ensure the audio files have been played before moving on › Reply To: Ensure the audio files have been played before moving on
Hi Zara,
Using .test.hasPlayed
sounds like a good idea, and there would be a way to make it work. But if you want to automatically move on to the Selector element immediately after the second audio has played back, there is a simpler way: just insert getAudio("soundl").wait("first"),getAudio("soundr").wait("first")
before the newSelector
line. Because of the "first"
argument, even if soundl is played after soundr, the two wait
s will be validated in a row because "first"
in the second wait
will automatically detect that soundr was played back before
Let me know if that worked
Jeremy