> @xeed :
if two objects collide, thos two are already picked by this event. Now you have to decide, which one you want to destroy or do something with it.
Let's say, you want to pick the first appearing bullet, and keep the newer one. That is easy:
You can pick the top or bottom (z-index) one very easily by the expression "Pick top (or bottom) instance". Since z-index is influenced by order of appearance, that means the older (or newer) can be made disappear.
Let's say, you want to destroy the one with lower speed:
Pick the top instance of the two colliding, just as before, than set a local variable to it's speed. You need this, since bullets to bullets comparison confuses things obviously. (Bullets.Bullet.Speed < Bullets.Bullet.Speed would compare it with itself, so does not work like that.)
Now you can compare to that local variable easily, see pic below for more details. (Of course it can be also health, or whatever attribute you compare of the two.)
You do not have the required permissions to view the files attached to this post.