How to stop sounds playing after player dies?

Get help using Construct 2

Post » Mon Jun 11, 2012 7:24 am

Hey i want to know how to stop sounds playing when my fps character dies? when you die, you can still press the shoot button to shoot, hearing the sound effect still, but i want it to stop activating when you press the shoot button?

thanks.
B
1
Posts: 1
Reputation: 227

Post » Mon Jun 11, 2012 8:00 am

Hi. Try to prevent the user to control the character.
I'm not sure, but:
Set ignoring input -> Start Ignoring
Set Enabled -> Disabled

properties may help :)
Good luck!
B
13
S
2
G
3
Posts: 24
Reputation: 2,812

Post » Mon Jun 11, 2012 2:25 pm

Add a 'compare values' condition to any events involved with shooting. If you check:
Player.Count > 0
then the event won't run when there are no Player objects.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600


Return to How do I....?

Who is online

Users browsing this forum: Kagubro and 19 guests