How do I make kinematic body follow path2d and loop?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By wildboar

I have been trying to make the NPC follow Path2D using this guide.

What I am trying to do is get my kinematic body character to move from left to right along path2d and when it reach last point turn and move back to first point and start again.

I managed to get the NPC to just moves towards last point, but it never stopped its movement and falls from cliff… Edit now it stops moving after reaching the end…

Got it fixed (I think) by increasing arrive distance…

wildboar | 2021-03-03 14:30

can you put that you solved in the original question?

Amateur.game.dev. | 2021-03-03 16:08

:bust_in_silhouette: Reply From: wildboar

solved by increasing arrive distance.