Sound effect each time a collision is detected

I feel a bit stupid for basically being the only one posting here, but what the hell.

I thought it should be easy to implement something that would play a sound every time a collision is detected between two objects, but I’m only able to get the sound the first time the collision is detected (collision between one object and another which is duplicated several times in the scene.

I’ve tried something like this:

[attachment=0]sound.png[/attachment]

Edit: Never mind, it looks like it worked fine when I deleted the instance of the object upon coliision.

Hello,

It causes a problem if the instance of Ball isn’t deleted because : imagine you have 2 balls → One is in collision with O2, the other not. In that case, the 1st event is valid and executed and the second too. You probably need to use object’s variable for Swoosh (each Ball has its own Swoosh).