Hello Fellow pathfinders.
I would like to hear your suggestions on how to handle randomly spawned creatures that will gather resources in a procedurally generated World.
My question is more to get some hints about what would be the best approach to handle such things.
So the creature should spawn and start roaming to find resources like water and food, meanwhile respecting any obstacles.
I cannot get my head around what to do to get this behavior in place.
I can setup pathfinding and make it Work for the “tile” of the World I am in.
I also understand the gridmover approach as shown in the procedural examples in the package, but this is very much related to the player control I guess…
What to do for NPC’s?
I do not fully undestand what is the right approach, since I cannot just “scan the whole world”…
Do I make a graph for each tile?
Should I somehow use RVOSimulator?
Do I assign graphmover to all NPC’s or something completely different???
I hope that somebody can point me in the right direction.
Maybe somebody know of a tutorial that achieves this functionality.
(BTW I also think there is a huge topic of simulating offscreen creatures somehow, but right now I would just love to get “visible” tiles handled.)