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
1
Posts: 6
Reputation: 1,363

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
54
S
28
G
18
Posts: 1,520
Reputation: 24,990

Post » Fri Jul 27, 2012 3:10 am

Thanks :)
B
16
S
1
Posts: 6
Reputation: 1,363


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 15 guests