I'm currently using five events to set pathfinding paths for enemies based on the player position and some constraints. I'm trying to simplify it down to a single event and am very close but can't get the minimum distance to work properly.
What I'm trying to achieve:
- Every X secs, find path to a 360° area within 420px and no closer than 100px to player position.
Using the 5 event method I can achieve it with:
Using the one event method it works but the minimum distance is not being observed (the maximum is).
I'm sure it is possible and my math is just wrong?