Check if Music is playing?

Get help using Construct 2

Post » Sun Apr 28, 2013 8:05 am

On Layout1 I have a song playing. It continues playing on to Layout2 and Layout3 and is eventually stopped on Layout4. But, while on Layout4 there is an option to go back to Layout2.

How would I go about checking if music is already playing when Layout2 is loaded? If there is no checker... should I just create a Go to Layout2 and play Music1?
B
50
S
14
G
12
Posts: 813
Reputation: 16,764

Post » Mon Apr 29, 2013 12:24 am

You can use Audio's "Is tag playing" event. As long as you gave a tag to the audio file when you started it, you'll be able to use that same tag to test if it is playing.
B
7
S
1
G
1
Posts: 11
Reputation: 1,322

Post » Mon Apr 29, 2013 7:27 am

At first I thought you were just messing with me but then I realized you can select Invert on an event lol. You just saved me so much headache!
B
50
S
14
G
12
Posts: 813
Reputation: 16,764


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Lordshiva1948, Popcan151, Skebab and 17 guests