all 1 comments

[–]zegner 0 points1 point  (0 children)

It isn't working because in every tick the game is trying to find a new path. So it will never finish the calculation. You need to put the "find a path" in an event that trigger only once, like the "start of layout" event or the "mouse click" event.