I've seen this pop up quite a few times and read up on quite a few examples.
The problem is I can't see what I'm doing wrong with this. The Player sprite is part of the Players family... but it's not working the way I imagine. I'm only using 1 sprite for all the players.
Instead of setting the "ClosestEnemy" variable to the number assigned to the closest enemy, it appears to be setting it to the enemy with the lowest number.
I've seen people do similar with more events, and I myself have done so, but I'd rather not go through the hassle of complicated code when I know it can be done with only a few lines.
I imagine I'm close, but I can't quite get it right.
Can anyone help?