How do I stop a specific sound.

Get help using Construct 2

Post » Wed Jul 23, 2014 7:13 am

I have many instances of a single enemy running at a given time. When the player is firing at the player I play "FiringAt.ogg" but I want to stop the sound from playing when an enemy isn't firing.

I can't use "stop sound from playing" because it'll stop all the firing sounds, so the enemy which was firing before and then went back will stop the other enemy's firing sound which is firing at the player right now.

Is there any solution for this problem?
B
6
S
1
Posts: 27
Reputation: 679

Post » Wed Jul 23, 2014 7:25 am

you can add a tag to a sound..

if you set that tag to the enemy.uid

you can stop the specific sound that that enemy is producing..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Jul 24, 2014 7:29 am

Thanks, it worked.
B
6
S
1
Posts: 27
Reputation: 679


Return to How do I....?

Who is online

Users browsing this forum: dand, mageekm, oosyrag, Yahoo [Bot] and 28 guests