I'm trying to get an enemy to navigate a tile map using navigation and follow path/path2d nodes. I've looked at some tutorials and most showed other methods that I didn't fully understand. I'm getting the path with getsimplepath() and trying to set the points from that array to the path2d if this is impossible could someone give me a bit help in this matter. My tile map does have navigation tiles debug does prove this. Here is what I'm using currently.
var path = $Navigation2D.get_simple_path($Enemy.position,$Player.position)
if($Enemy.get_curve().get_point_count() == 0):
for x in path:
$Enemy/PathFollow2D.offset += 1
Thanks ahead of time if you could help!