How do I don't make my Sound playing twice

Get help using Construct 2

Post » Sat Nov 12, 2016 8:39 pm

Problem Description

Hi everyone, right now i'm doing the footstep of my pnj. Of course, i associate a sound when the player press the key's deplacement and it's stop when it's released. But i have just one problem, i have the behavior 8directions so when my player decide to use up and right you have a double sound and it can't stop.
I would like to make a event which tell that the sound can't be played if this sound is playing.

Thank you very much for your help.

Image
B
4
Posts: 3
Reputation: 206

Post » Sat Nov 12, 2016 8:46 pm

If you invert the bottom event, the one recalling if the sound is playing, and add the other events as a sub of that one, that should work. So:

Code: Select all
Audio is not playing
--- arrow key pressed -> play audio

B
13
S
2
Posts: 15
Reputation: 1,625


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 9 guests