Errors: Node Not Found: Score [Label]

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

I Have no idea what im doing wrong here.

My tree is like so:
Its in its own scene
HUD > Score

Score is a child of HUD.

The HUD script is =

extends CanvasLayer

func updatescore():
	$Score.text = str(global.score)

It says it cant find the node. Even though when i do get_node it shows Score as an option in a drop down?

Any help much appreciated

:bust_in_silhouette: Reply From: wyattb

try using the absolute path first. If that doesn’t work, then you have a scene problem. See my reply Updating The Score Label After Player Hits a collectable. - Archive - Godot Forum

Also try self.get_node(“Score”)

I finaly understand what your trying to say. Thank you very much. I Thought i understood it But now i fully understand what your saying. Thank you very much.

Archtects | 2018-09-20 11:55