Hello all
i am making a tower defense game and the game consist of enemies clumping up against an object and attacking it
to defeat the enemies, you have to click on them reducing their lifepoints and eventually defeating them.
my problem is, when i click the enemy if they are clumped up it triggers for ALL enemies that are touching the mouse, this is bad of course because it means you can defeat 100's of enemies in a few clicks.
How can i make it so that when you click it only registers on one object and now all of them?