The enemies in my game follow the player like this.
X of player is greater than X of right side
PMO - user is holding right key
X of player is less than X of left side
PMO - user is holding left key
This works fine for just one enemy but when there are 2 or more the first enemy keeps going in its current direction and the other enemies don't move at all! Whats the matter?