Topic was automatically imported from the old Question2Answer platform.
Asked By
jospic
Old Version
Published before Godot 3 was released.
This follow statement causes dbg error as shown in the figure:
get_node("Parts").add_child(p)
I can not understand the reason for the failure , which still does not interrupt the normal execution of the project .
Anyone have any suggestions ?
Thanks in advance
-j
Having the “j” or “p” being the (node).new Doesnt work with that, it would appear that to properly use add_child you would need to do something along the lines of
Example
get_node("Test").add_child(Node2d)
Or something along those lines, i believe that’s the reason why the hookups arent working as well
I dont know an alternative fix other than just setting all the joints manually in the editor for now until you find an alternative method of doing this properly