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,468

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
140
S
71
G
17
Posts: 1,773
Reputation: 20,511

Post » Sat Oct 15, 2011 4:55 am

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


Return to How do I....?

Who is online

Users browsing this forum: AkbarAsgharMG, lwgames, Yahoo [Bot] and 4 guests