playing sounds in sequence

Get help using Construct 2

Post » Thu Oct 24, 2013 4:37 pm

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
B
62
S
20
G
56
Posts: 1,077
Reputation: 36,021

Post » Thu Oct 24, 2013 4:45 pm

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.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Oct 24, 2013 4:54 pm

I tried that and it's giving me an error.

UncaughtTypeError: Cannot call method 'tick' of undefined http://localhost:50000/Audio_plugin.js, line 2575 (col undefined)

I guess I'll keep playing around with it. Thanks.
B
62
S
20
G
56
Posts: 1,077
Reputation: 36,021

Post » Thu Oct 24, 2013 5:00 pm

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.
B
62
S
20
G
56
Posts: 1,077
Reputation: 36,021

Post » Thu Oct 24, 2013 5:00 pm

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.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Oct 24, 2013 5:02 pm

Yes, I'm using the tag, not the filename.
B
62
S
20
G
56
Posts: 1,077
Reputation: 36,021


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests