[Help] Stop audio event

Get help using Construct 2

Post » Wed Mar 06, 2013 8:24 am

Hello guys, I have some troubles with the audio settings here. Let say I have 2 layout : the first is the main menu layout and the second is the game layout. Basically I've made an event to stop background music at the the end of the first layout. But when I tested the game with the browser the music in the first layout won't stop and stacks with the second layout background music. It's terrible to have two different music playing at the same time.

How should I fix this?sangadji2013-03-06 08:26:23
B
3
Posts: 2
Reputation: 279

Post » Wed Mar 06, 2013 8:46 am

Sounds like it should work. Post a capx so we can check what is wrong?
Mistakes were made.
B
37
S
17
G
67
Posts: 1,041
Reputation: 38,211

Post » Wed Mar 06, 2013 6:28 pm

If you create the music you want to play with a 'tag' then you can stop the music using the tag.
I had the same problem where my title music continued playing when I went into the main game. So I set the audio to have a tag and stopped the audio playing by using the 'tag' name.

Hope this helps..
B
28
S
6
G
2
Posts: 86
Reputation: 3,267

Post » Thu Mar 07, 2013 8:47 am

[QUOTE=Gweely] If you create the music you want to play with a 'tag' then you can stop the music using the tag.
I had the same problem where my title music continued playing when I went into the main game. So I set the audio to have a tag and stopped the audio playing by using the 'tag' name.

Hope this helps..[/QUOTE]

Thankyou for your help! It worked!   
B
3
Posts: 2
Reputation: 279


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 17 guests