lovjc7 wrote:When the player gets within a certain distance of the enemy..trying to get the enemy to flee at a random angle away from the player. Any help would be appreciated
Could you give us more details, Is it a top-down game type or platformer?
If it is a Top-down game type, a non-complex way to make this event:
If Player.X is between Values AI.X - Distance & AI.X + Distance then..
-----> Set AI.Angle to random(360)
Many other ways to do it, depends on the game type and structure.