I am trying to set up click play events where students can click on an image and play an audio sample. However, if we set up multiple click to play audio options, it is possible for the audio to overlap. Is there a better way to organize code to prevent multiple tracks from playing at the same time. I am thinking this may require some sort of nesting? I know I could try to set it up chronologically, but I am not confident the wait commands will prevent accidental clicks on other click events for audio.
Open to suggestions, share examples please if you have any!