Sorry for the general title but i don't know how explain it.
I'm trying to use functions but seems i'm doing something wrong (https://www.scirra.com/manual/149/function)
I have a condition that says:
WHen bullet collides with wall -> Destroy and spawn a few particles.
So i can shoot 5 bullets and when each one collides with the walls the bullet is destroyed and the particles appears.
If i put the events on a function and call it from the condition if i shoot 5 times, every time that the bullet collides on the wall spawn particles on all the bullets that appears in the screen.
What i'm missing?