i am trying to visualize a astar2d grid and everytime i see a example project that does this from godot 3 it says function update() but in godot 4 it gives error that no function like this exist even downloaded a example project and when converted to 4 it still gives same error i want it so i can call the _draw function and draw the grid
#AStar2D update() not working in godot 4?
1 messages · Page 1 of 1 (latest)
There's no version of Godot where AStar2D has that function. So it must have been defined by whoever made the tutorial
What did you expect the update() function to do? And why do you need it for calling _draw() methods?
i want to visualize the grid so i can see the points
AStar2D does not have anything visual, you'd have to draw something to each of the points manually.
It should be something like:
for point in a_star.get_points():
draw_circle(point, 1.0)