How To Move A KinematicBody2D Along An AStar-Generated Path?

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

Hey all!

I’ve been hitting a wall for several days now trying to get my player sprite to move along a path made by A*.
I’m quite new to Godot, so I’m sure I’m missing something really simple.

Nevertheless I’ve so far found almost nothing concerning this sort of implementation, and what I did find was a brief paragraph and code example, which didn’t get me far at all.

So, how exactly do you implement movement for a KinematicBody2D in a series of positions along an A*-generated path?

Thanks!

Other info:
If any code is needed, you can find my current non-functional implementation of movement, as well as the stripped down A* implementation I modified from a demo project, at this link: https://hastebin.com/ohixafaboh.cs
I also feel that I should mention my intention for this is to have a click to move system that avoids any static body colliders along its path.
A* seems like the best long-term solution, as I can use the same codebase for NPCs as well, but I am certainly open to other solutions.