#help with code
1 messages · Page 1 of 1 (latest)
On line 7 of your SceneTrigger script, try changing body.get_parent() to just body since it is the player (as per the check on line 6)
i just did
it gave me this
Invalid get index 'player' (on base: 'CharacterBody2D (Player)').
And on line 8 of your SceneManager script, change to player = from since I doubt Player has its own player property
Attempt to call function 'call_deferred' in base 'null instance' on a null instance.
i got this now
I think because you removed player from the tree by removing it as a child from its parent node
so from.get_tree() returns null
oh so should i reinitiate it?
I'm not entirely sure, it's a bit unclear to me what you're doing. If you're just trying to change the overall Godot scene I don't think you need to reference the player to do that