How do I recalculate path?

Get help using Construct 2

Post » Mon Jul 27, 2015 8:18 pm

Hello,
Does anyone have idea how to recalculate a path on the fly in pathfinding behaviour?
Eg. unit1 has found path and its moving along but in the meanwhile an obstacle was created that makes it collide...
at this point i need to recalculate the route... but how?

thanx!
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Mon Jul 27, 2015 9:33 pm

You have to do the path finding again for each unit as you normally do. You can use the regenerate collision map region or what it is called to regenerate the area of the newly added object, to reduce path finding time.
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,828


Return to How do I....?

Who is online

Users browsing this forum: Exabot [Bot] and 6 guests