Hello,
I making a beat ' em up, and the hero can hold an enemy if a little sprite square, linked to the hero, overlapping with the square of the enemy.
I don't want the hero can hold two enemies in the same time, but, sometime, they're overlapping togheter ( beacause they entering in overlap in the same time ).
How can I give them the priority?
I tried to say to the software to take the closest in the coordinate X and Y, but probably something is wrong....
Thanks in advance!