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
18
S
3
G
5
Posts: 24
Reputation: 3,473

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
147
S
74
G
20
Posts: 1,786
Reputation: 22,527

Post » Sat Oct 15, 2011 4:55 am

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


Return to How do I....?

Who is online

Users browsing this forum: blue visionary, David181, luckyrawatlucky, shawnzien and 6 guests