How do I Restart layout , but keep music playing

Get help using Construct 2

Post » Thu Nov 06, 2014 9:29 am

Hello, i would like to restart layout , and i dont want to play the music from beginning every time. I wan it to keep playing, any way to do this?
B
11
S
3
G
1
Posts: 418
Reputation: 1,780

Post » Thu Nov 06, 2014 10:25 am

Rather than using the action Play audio, make a global variable and a new event which says "If PlayMusic (your variable) = 1" -> Play Audio

Also when you want to stop it just add another event after that saying "Else" -> Stop audio (or pause), and then changing the variable value
B
8
Posts: 12
Reputation: 338

Post » Thu Nov 06, 2014 10:42 am

the problem is that before i restarting the layout i need to reset global variables.
B
11
S
3
G
1
Posts: 418
Reputation: 1,780

Post » Thu Nov 06, 2014 12:26 pm

maybe something like this...
You do not have the required permissions to view the files attached to this post.
Last edited by korbaach on Thu Nov 06, 2014 3:47 pm, edited 1 time in total.
Image
B
64
S
23
G
7
Posts: 1,482
Reputation: 10,825

Post » Thu Nov 06, 2014 2:47 pm

@ex32

Here is the solution. Try this :

Image
Image
B
23
S
2
G
1
Posts: 46
Reputation: 1,087

Post » Thu Nov 06, 2014 9:36 pm

Thank you , Both Perfect
B
11
S
3
G
1
Posts: 418
Reputation: 1,780


Return to How do I....?

Who is online

Users browsing this forum: HenryPK and 12 guests