How do I keep the music playing even when the layout is rese

Get help using Construct 2

Post » Thu May 28, 2015 1:10 am

hello, I'm building a game for my college course and am struggling with trying to have my music to continue to play when the layout is reset. My game is a plat-former and when the player dies, the event is to restart layout, but this means the song is also restarted.
B
3
Posts: 3
Reputation: 177

Post » Thu May 28, 2015 2:20 am

yes well you have to replay the song again on start of layout, there is no way around it, so the code should look similar to your menu song or when you start to play the specific song,

on start of layout audio> stop all sound | then| > play looping music name at what ever volume with whatever tag
B
78
S
23
G
69
Posts: 1,354
Reputation: 44,027

Post » Thu May 28, 2015 2:22 am

Have the event that starts the music track first check if that track is already playing.
FREEDOM: Diegesis - Out Now for Windows! http://freedom.quicksandgames.com
B
22
S
5
G
1
Posts: 83
Reputation: 1,818

Post » Thu May 28, 2015 11:38 am

Thanks for the replys, I managed to get it working by not resetting the layout and just resetting the position of the character.
B
3
Posts: 3
Reputation: 177


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 9 guests