So in designing enemy AI, making pathfinding calls for enemies, would this make it possible to generate random paths that wouldn't be blocked?
Enemy-on contact with player
-Enemy-find path to player.x +random(-250,200) -(what goes here is obstacles)width
-Enemy-find path to player.y +random(-250,200) -(what goes here is obstacles)height
Develop games in your browser. Powerful, performant & highly capable.
If I understand you correctly, you can try this: