So i make smash game,where u click to kill it
then,there's enemy which being overlapping with each other,when i click it,it kill both.
how to make it kill enemy at the above one first instead killing both enemy?
Ok. Enemy = sprite. Add additional object (sprite2) and global variable (number) "clicker".
1)Mouse=>On left button clicked on Sprite=>(System) Set clicker to sprite.IID , Create object Sprite2 on layer ... at (mouse.X, mouse.Y)
2)((Sprite2=>On collision with Sprite) and (System=>clicker = Sprite.IID)) => Sprite destroy and Sprite2 destroy