How do I have background music play after a layout restart?

Just started using Construct 2? Post your questions here

Post » Sat Mar 14, 2015 8:43 pm

I'm new to C2 and I've begun putting in some music for my game. It's going well, however in the game you die a lot, so it feels kind of weird for the music to restart every 10 seconds. I've programmed death to basically be:

"Every time Player is destroyed, restart layout"

But my music is programmed:

"Every time layout starts, play music"

How can I fix this?
B
3
S
1
Posts: 3
Reputation: 331

Post » Sat Mar 14, 2015 8:47 pm

Just have it check to make sure its not already playing.
B
23
S
4
G
2
Posts: 364
Reputation: 2,392

Post » Sat Mar 14, 2015 11:23 pm

PhoenixNightly wrote:Just have it check to make sure its not already playing.


How would I do this?
B
3
S
1
Posts: 3
Reputation: 331

Post » Sun Mar 15, 2015 1:50 am

Invert.png
You do not have the required permissions to view the files attached to this post.
B
23
S
4
G
2
Posts: 364
Reputation: 2,392

Post » Sun Mar 15, 2015 4:22 am

PhoenixNightly wrote:
Invert.png



Ahhh thank you so much :D

Music flow feels soo much better now. In fact, the whole game feels different haha.
B
3
S
1
Posts: 3
Reputation: 331


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests