Collision sound in Breakout clone

Get help using Construct 2

Post » Fri Jul 27, 2012 12:42 am

Hey guys
I've worked through the Breakout clone tutorial project and am now playing with adding sounds to the game.
I have a bounce sound used when the ball hits the paddle. It seems to be playing more than once when the ball hits the paddle - i.e. so often it's almost a buzzing sound. I suspect this is because the ball hitting the paddle isn't a discrete event, because it's triggered on overlap:

http://imgur.com/IKKGo

Is there a way to make the sound only play once? Maybe some sort of delay to restrict how soon after the sound plays that it can play again?

Cheers

Lucaspr0fess0r2012-07-27 00:43:30
B
16
S
2
Posts: 6
Reputation: 1,513

Post » Fri Jul 27, 2012 12:56 am

You want the System Trigger once condition.

Ball: Is overlapping Paddle
System: Trigger once
    Play sound
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,650

Post » Fri Jul 27, 2012 3:10 am

Thanks :)
B
16
S
2
Posts: 6
Reputation: 1,513


Return to How do I....?

Who is online

Users browsing this forum: Bobbyneal100, Euduardo, Kin, mickclarke, tinhofiel, TRMG and 44 guests