Basically I have the same instance bullet objects moving in one direction and what I want is that when the bullet objects overlap another bullet object, all the bullet objects should be destroyed except for 1.
So lets say theres three instances of the same sprite all overlapping eachother. I want two of them destroyed, with only one left. It doesn't matter which one is left as long as all of them except "1" are destroyed.
At the same time these objects are respawning, so I cant seem to think of a proper solution.
Heres the Pseudo code: Assume three sprites are moving across the screen. These three sprites are the same sprite object copied three times (so same 3 instances)
if sprite collides with sprite
-->Then Destroy one of the sprites
Or if sprite is overlapping sprite
----> Then destroy one of the sprites, not both
I have tried this:
Event--> sprite on collision with sprite
--> pick 1 instance
Action---> destroy sprite
This doesn't really work out to well.