How do I Sound at all levels

Get help using Construct 2

Post » Sun Jul 05, 2015 3:14 pm

Hi, I want to start in the main menu music and when I pass level continue and not restart. This I have done.
Now I want that when the off button continue off at level 2, but it appears on. Is there any way to continue off in the other levels?

Here I leave an example that works for you to help me :D
https://www.dropbox.com/s/b9q8y4gwsnqh3ya/Sound.capx
B
13
S
2
Posts: 297
Reputation: 1,717

Post » Sun Jul 05, 2015 3:57 pm

just add this code in event sheet of all layout or include event sheet "global" (with this code) in all your layout
1/ on start layout:
2/ ----sound "yoursound" is NOT (invert condition) playing : sound play "yoursound"
Image Image
B
22
S
13
G
130
Posts: 869
Reputation: 67,816

Post » Sun Jul 05, 2015 5:13 pm

And with that the buttons work?
B
13
S
2
Posts: 297
Reputation: 1,717

Post » Sun Jul 05, 2015 6:02 pm

your modified capx
Image Image
B
22
S
13
G
130
Posts: 869
Reputation: 67,816

Post » Mon Jul 06, 2015 12:22 pm

@MadSpy Thank you very much, it's perfect :D
B
13
S
2
Posts: 297
Reputation: 1,717


Return to How do I....?

Who is online

Users browsing this forum: stevenode and 9 guests