Bullet Audio Still happening after death

Get help using Construct 2

Post » Wed Dec 28, 2011 11:55 pm

Hello,

I was wondering how to stop the "Bullet" sound I created upon the Player Destroy event when his health goes to zero.

I am just trying to improve upon the tutorial.capx and I have added one of the Explosion sounds from the purchase package for the sound of the bullet being fired.

I added this event on the Mouse->On Left button Clicked.

I have tried to add Bullet Stop Animation to the Player->Health Less than or equal to Zero event, but the sound keeps on playing after my health reaches zero when you press the left mouse button.

Thanks in advance.
Lordxorn
B
13
S
3
G
5
Posts: 12
Reputation: 3,532

Post » Thu Dec 29, 2011 12:00 am

Add a condition to your "Mouse->On left button Clicked event" a compare "Player->Health > 0", this way, the sound won't even be triggered in the first place.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Thu Dec 29, 2011 12:53 am

[QUOTE=Kyatric] Add a condition to your "Mouse->On left button Clicked event" a compare "Player->Health > 0", this way, the sound won't even be triggered in the first place.[/QUOTE]

Ah perfect,

Just noticed the right click and extra condition I could add,

thanks alot!
B
13
S
3
G
5
Posts: 12
Reputation: 3,532

Post » Thu Dec 29, 2011 1:08 am

Be sure to check at least how events work in the manual.
I strongly advise to take the time to read the manual in order too (at least the "Overview", "Interface" and "Project primitive" and "system references" categories in the first place).
It takes a bit of time (honestly not that long) and it really helps.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 20 guests