Follow up: It worked! But one problem, when I try to use the time variables on the victory screen it sets them to zero!

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

This is what is displayed

extends Label

onready var time = preload("res://").new()

func _ready():
	set_text(str(time.s) + "." + str(

This is my code for calling it

Looks like you’re spinning up a brand new instances of your script and then immediately asking it for some stored time values - that will have never been stored in the first place. So, the 0 result is as expected I think.

I took a look at the linked question, but I’m not exactly sure what you’re trying to accomplish. It looks like you just want some running level time or something, which should be much easier than your current (broken) approach.

That said, I don’t understand exactly what the goal is…

jgodfrey | 2022-11-22 22:47