So I’m having two problems with my game using this API.
The first is the player constantly moves, and I want the enemies to constantly follow him. What I’ve been doing it just regenerating a path ever 100ms, but this creates jittery movement. And setting it closer to 1000ms creates odd paths with a quickly moving player, what’s the best way to handle this?
The second is I want the enemies to follow a non-optimal path in the interest of diversity. As show in this image.
The blue represents the player, black are walls, and red are the enemies and their paths. Local avoidance and AlternativePath don’t seem to really cut is as they just seems to offer a horde like AI.
Thanks in advance!