I am working on a few different AIs for a tile-based game. NeedI'm trying to figure out one where itthat tries to keep a certain distance from the player. So if distance becomes small, move away. The
The whole game is in a pretty small are so it can't just forever move away. The movement is 4 directional. So, any idea how to
How do I make the AI keep going at a distance, and once caught in a corner or close to a side of the room, to ignore the rule and just try to go around the player to the other side of the room?