How do I keep music playing from one layout to another?

Just started using Construct 2? Post your questions here

Post » Mon Jul 20, 2015 7:41 am

Finally at the music portion of my game, woohoo!

So this has to do with the menu part of my game. Since my music starts at the start screen and the play presses buttons to lead to another layout but it's still in Menu mode and the same music should be playing. The problem is that when I go to another layout, the music restarts. How do I keep the music keep going into the next layout? The music doesn't always start at the beginning of the start screen either, the player can press the game selection options button, which is part of the Menu interface and the Menu music should start playing then and continue if the player were to press back and go to different Menu layouts.
Risk Rocket now available on Google Play
Image
B
36
S
15
G
6
Posts: 337
Reputation: 6,300

Post » Wed Jul 22, 2015 1:21 am

Hi,

make a check if the music is aleredy playing, if not, play.

example:

Image

the music should then continue playing till end / restart. you can do this "on start of layout"

kind regards
B
19
S
7
G
1
Posts: 222
Reputation: 2,551

Post » Fri Jul 24, 2015 4:45 pm

Hey there, could you please provide a CAPX? I know it says what to do right there, but I'm still confused....
Risk Rocket now available on Google Play
Image
B
36
S
15
G
6
Posts: 337
Reputation: 6,300

Post » Fri Jul 24, 2015 5:04 pm

Hi, that should make it clearer :)
Image
B
19
S
7
G
1
Posts: 222
Reputation: 2,551


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests