Is there an easy way to play sounds in a sequence without using the wait command? For example I want to play first.wav and when it finishes play second.wav
audio on ended "tag" - play audio.
just give the audio file a tag when setting play so it can be compared with the tag in the on ended event.
Develop games in your browser. Powerful, performant & highly capable.
I tried that and it's giving me an error.
UncaughtTypeError: Cannot call method 'tick' of undefined localhost/Audio_plugin.js, line 2575 (col undefined)
I guess I'll keep playing around with it. Thanks.
I think I figured it out. It's forcing me to have it look for the sound in the Sounds folder, rather then the Music folder, even though the sound is in the Music folder.
You should add a tagname to the audiofile you are playing and use that tag in the audio on ended. Using the name of the audio file won't work, just the tag.
Yes, I'm using the tag, not the filename.