How do I…
How can I shoot to the nearest enemy (and not just a random one like in the picture below) in my top-down shooter game?
What is the expected result
The bullet should go to the nearest enemy to the player.
What is the actual result
The fire focuses on one type of enemy and keeps shooting at it.