|Topic was automatically imported from the old Question2Answer platform.
I have a game in which there is game menu which asks the player what spaceship he wants, this is child of a node2D which should remove it after the player chooses his spaceship and runs the other game scene but it error and gives
error code: Cannot call method ‘queue_free’ on a null instance
Varia is a script that i just use to store my global variables
main is the node in which the game takes places
var game_scene = load("res://main.tscn").instantiate()
help me fix this
any and all help is appreciated thanks