Audio Continues to play

Get help using Construct 2

Post » Wed May 08, 2013 11:06 am

greetings,
i have a problem with the sound in my game, my main menu has music when it plays i set it to -- system on start of layout play "music name" -- and it works -- it also has System on end of layout stop "music name"--.

my menu has 2 buttons a play button and controls menu, where the controls menu has a different song that plays.
when i go into the control menu the main menu's song continues to play instead of its own song and when i go back to the main menu the original song playing restarts. This also happens while going into the first level (which also has its own song) im new to Construct and i am unsure how to fix this

PS. sorry for big slab of text lol.
B
3
Posts: 3
Reputation: 181

Post » Wed May 08, 2013 3:45 pm

You play music by name, but stop it by tag. Make sure you have a tag on the music and use that to stop.
ImageImageImage
B
67
S
19
G
124
Posts: 3,216
Reputation: 74,419

Post » Thu May 09, 2013 12:29 am

Plus, the best way to stop a background music is tagging it as "Music", so, always you want switch the background music, you'll be able by simple stopping the tag "Music" and starting another music immediately.
ImageImageImageImageImageImage
B
93
S
20
G
13
Posts: 1,217
Reputation: 18,996

Post » Thu May 09, 2013 3:16 am

hi guys thanks for the reply,
i added tags to my songs (all different ones to fit the name of the song)
now when i load the game the main menu's music stops after i click controls menu or play, but then the next levels song doesn't play ?? and when i go back into the main menu the song plays again.

i opened up the first level to test if the music works and it did (but then again the other levels didn't work)
sorry about all the trouble im new to adding music in Construct.

again thanks for the replies
B
3
Posts: 3
Reputation: 181

Post » Thu May 09, 2013 7:32 am

Here is a sample of what I am currently using. This should be all that you need. Remember to tag all your background music the same. Hope this helps.

Tekniko2013-05-09 07:32:54
B
50
S
14
G
12
Posts: 813
Reputation: 16,764

Post » Thu May 09, 2013 10:56 am

Thanks everyone for the help! i got it to work    
B
3
Posts: 3
Reputation: 181


Return to How do I....?

Who is online

Users browsing this forum: DemantDigitalArt and 23 guests