Why is my script not checking for my score?

Godot Version

4.6

Question

Hello!!!

I’m trying to check a score in a minigame so that, when it hits a certain score, it changes to a different scene. I tried to code it so that it did that, but it hasnt printed what i needed to. any reason why?

This script is on my root node, by the way.

func _score():
	if left.score > 3:
		print("10")

its also giving me no errors.

Where do you call _score()?

1 Like

.

oh, that might be my problem :,D thank you

1 Like