Obviously everyone here should know how to make an enemy follow the player... I currently have 4 players, each with a different instance variable "player"... however, currently this is the code I'm using:
For Each -> Baddie : Baddie -> Rotate 3 degrees toward (Player.X, Player.Y)
Which makes the Baddie follow Player instance variable 0... for some reason, rather than all of them. How would I make it, so that it follows the closest one for example?
I can't even do a "distance(Baddie.X, Baddie.Y, Player.X, Player.Y" because it assumes the first player instance.
I really don't want to quadruple up on all my events to separately track each player.