The title is bad, but it's hard to explain. I'm trying to make runaway AI for my game and I want it to run away from the player through pathfinding to help it dodge trees and look semi-realistic. The problem is that I have nothing to make it pathfind to, and therefore require a way to move an object to a certain distance away from the player, and also always stay infront of the player. But I'm having a problem with that as well because the players can simply turn away from the object running away to draw it towards the player. So my question is, how do i properly make an object pathfind away from the player, or simply run away from the player and dodge solid objects as pathfinding would? I'm getting very frustrated because I really want this to work but I have no idea where to begin and what to even do! Please help me!