This screenshot shows part of my event sheet that controls enemy movement. The way I want this to work is when the tank enemy is too far from the player it will move to a distance of 10 pixels away from them. When it is too close it will do nothing. Currently these events seem to cause the tank to move towards the player indefinitely while it has line of sight and i can't think why.