With a top down oriented game, is there a way to keep enemies away from certain environmental pieces?
Specifically, how would I go about telling an enemy that once it gets within a specific range to another object, to then travel in the opposite direction?