How do I Continue Music when restart Layout

Get help using Construct 2

Post » Mon Apr 03, 2017 9:36 pm

Hi, thanks for your time
I have the musics playing by variables, those variables do not reset on the start of the layout, but the music do.
When the player dies, and click "restart" I wish the music continue to play, without start again. Is there a way to it?
B
28
S
14
G
6
Posts: 86
Reputation: 5,479

Post » Tue Apr 04, 2017 7:54 am

What you could do is have a variable called restart then whenever you call the "Restart layout" don't do that set the variable to 1 and then with all the objects that would have moved on your layout say If VarRestart = 1 go to 0,0 or wherever they are at the start of the layout
Image
B
28
S
15
G
12
Posts: 309
Reputation: 9,631

Post » Tue Apr 04, 2017 2:40 pm

Wow, that was work. I can't believe that doesn't exist a way of simply let music playing continuously when restart the layout... :(

There is a lot of objects. Generated randomly in a complex way. I tried to do this you say @LaurenceBedford, good thinking, but in my case I only got bugs.
Do you know some plugin or another trick that allows it?

Thank you so much!
B
28
S
14
G
6
Posts: 86
Reputation: 5,479

Post » Tue Apr 04, 2017 4:27 pm

Ooh nevermind man, I just rework the way you say and figure it out.

The music continue playing after die-restart! :D

Thaaaannkssss!!! haha
B
28
S
14
G
6
Posts: 86
Reputation: 5,479

Post » Wed Apr 05, 2017 4:57 pm

No problem good luck on your project!
Image
B
28
S
15
G
12
Posts: 309
Reputation: 9,631


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests