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?
We have what we are looking for.
B
25
S
12
G
4
Posts: 57
Reputation: 4,123

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
24
S
13
G
11
Posts: 277
Reputation: 8,685

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!
We have what we are looking for.
B
25
S
12
G
4
Posts: 57
Reputation: 4,123

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
We have what we are looking for.
B
25
S
12
G
4
Posts: 57
Reputation: 4,123

Post » Wed Apr 05, 2017 4:57 pm

No problem good luck on your project!
Image
B
24
S
13
G
11
Posts: 277
Reputation: 8,685


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, MikaelS, nahima and 10 guests

cron