How can i make this pathfinding works and not stop moving all over the time
Hi Executeor are you sure that you need the Path Finder for that?
The reason I'm asking is that from the picture, it looks like you don't have any obstacles like (Tilemaps or obstacles sprites)
Are you trying to do something like this?
This is continuous
This is every 1 second like in you Picture counting from Each Resource eaten
https://www.dropbox.com/s/9my3byi99mhfz ... .capx?dl=0
The Reason that you Pathfinder is not working Properly is that Every 1 second you Set all the "Harvesters" to look for Path even the ones that already have and moving to a Path, is not only that To qualify for a path you have a condition if the "Resource" Var coming = 0 so when finds one you set it to 1 and move the "Harvesters" to that "Resource" but because a lot of times will not reach and eat that "Resource" as you reset all the Paths again every 1 sec, at the end will be many "Resource" left that will have Var coming = 1 that cannot be picked up again by the condition
To resolve this you can add one more condition "Harvesters" >>Is not Moving along Path