I'm using a scene to act as a scene changer, but in its script, it's unable to find it's child nodes.
My structure is like so:
SceneChanger
-Control
-blackRect
-AnimationPlayer
The two lines of code i use are
onready var animation_player = get_node("AnimationPlayer")
onready var black = get_node("Control/blackRect")
Without fail, they result in a get_node: "node not found" error. This doesnt crash the program, but when I try to call them later, the null pointer does.
I have tried:
get_node("root/SceneChanger/...")
$AnimationPlayer
self.get_node("..")