0 votes

Whenever i run the game in its current state i keep on getting the same error

Heres the Scene Tree:

  • Master

    • Button
    • Score

and heres what i wrote in the script i assigned to Master

extends Node

var clicks = 10

func _process(delta):
     $Score.text = "Clicks:" 

I keep on getting this error whenever i try to run the game:

get_node: (Node not found "Score" (releative to "/root/Master").) 

I looked into alot of places for the past 30 minutes trying to fix this, this is my first project outside of the tutorial projects, it has something to do with its path but i cant figure out where it is for the life of me
Thanks in advance!

Godot version v3.3.2.stable.official
in Engine by (12 points)

Works for me. I assume Score is a Label?

extends Node

var clicks = 10

func _process(delta):
    $Score.text = "Clicks:" 


--- Debugging process started ---
Godot Engine v3.3.2.stable.official - https://godotengine.org
OpenGL ES 3.0 Renderer: NVIDIA GeForce GT 650M OpenGL Engine
OpenGL ES Batching: ON


Is Score ever removed from the game? You're getting it every frame.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.