Playing music only once?

Get help using Construct 2

Post » Sat Oct 15, 2011 4:23 am

I've included music into my game as a .ogg format, and I have it so whenever a boss is visible, it stops the current music and plays that one. However, for both songs, they play basically every tick even though I didn't use that option.
B
17
S
3
G
5
Posts: 24
Reputation: 3,438

Post » Sat Oct 15, 2011 4:40 am

"Every tick" is basically a blank condition, all events that are true will happen every tick. So your boss visibility check is going to happen every tick while the condition is true. A solution to this is to add another condition to the event, under system object choose "trigger once while true".
B
134
S
65
G
16
Posts: 1,766
Reputation: 19,190

Post » Sat Oct 15, 2011 4:55 am

Perfect! That fixed it. Thanks!
B
17
S
3
G
5
Posts: 24
Reputation: 3,438


Return to How do I....?

Who is online

Users browsing this forum: Braus, spcsmrf and 14 guests