"Error: Parameter ' p_child ' is null" when trying to instance a node, free it, and then instance it again

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

Hi I’ve got a node that instances when I press “enter”. The vars for this node are preloaded with onready var.

I instance the node (after checking if the node doesn’t exist), queue_freeing it when the event is finished, and then pressing “enter” again to try to bring it back and this is where the error occurs and nothing happens. Thanks.

:bust_in_silhouette: Reply From: lulu

Try to load a node on every enter call if it’s possible

Sorry could you elaborate on that please? Not sure what that does.

jobax | 2018-03-27 01:07

:bust_in_silhouette: Reply From: jobax

Just had to reorder some lines… Seems to work now.