Audio Play Once On Collision

Get help using Construct 2

Post » Fri May 01, 2015 8:45 pm

Hi Im MCShortsYT, I am making a game and my problem is simply to make a wall_hit sound play ONCE when I collide, I dont want it repeating, There. Pls help meh :cry:
B
3
Posts: 6
Reputation: 181

Post » Fri May 01, 2015 9:23 pm

Tag the wall hit "wallhit" when playing it. Then in the collision event add another condition (audio: is tag playing "wallhit") and invert it. This way it will only play, when the wall hit sound is not already playing.
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 787
Reputation: 3,786

Post » Sat May 02, 2015 5:51 pm

mindfaQ wrote:Tag the wall hit "wallhit" when playing it. Then in the collision event add another condition (audio: is tag playing "wallhit") and invert it. This way it will only play, when the wall hit sound is not already playing.


Sorry but it did not work :-( here is the code
System Played = 1 Wallhit Play wallhit not looping at volume 0 dB ("")
System Trigger Once
B
3
Posts: 6
Reputation: 181

Post » Sat May 02, 2015 5:53 pm

Here is the game and code https:// www. mediafire. com /?xe4342onz9u56g4 Construct 2 admins wont allow me to post link so paste this in and close in the spaces
B
3
Posts: 6
Reputation: 181

Post » Sat May 02, 2015 6:33 pm

Image

first event is my suggestion; second event might be what you were trying with your events, I'm not sure. Use one and see what it does (don't use both simultaneously)
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 787
Reputation: 3,786


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound, SputnikCZ and 2 guests