Hi everyone !
I have been trying to deal with an a* path finding script based on a grid that I found on this video, the script was originally made on a Spatial node and I tried to translate it on 2D Node, but after 2 hours of debugging I've been stuck for a while with this error :
Invalid call. Nonexistent function 'begin' in base 'Node2D (drawPath.gd)
This error call me back to the line marked with an # :
var d = get_node("drawPath")
for p in path:
I did some research on my own and I think it's mainly because it tries to treat the get_node as a common object.
The draw_path.gd script that is called is in the same directory and attached to a children Node2D.
If you want to have more precision please feel free to ask,
PS : The original code was made in a Godot 2.2 engine or older, it's maybe a compatibility problem I guess ?