so i have a timer, and when this certain function happens, it stops the timer. how do i get the final number of the timer and put it on another scene?
here's the code for the timer that i got from a tutorial:
extends Label
var time = 0
var timer_on = true
func _process(delta):
if(timer_on):
time += delta
var mills = fmod(time, 1)*1000
var secs = fmod(time, 60)
var mins = fmod(time, 60*60) / 60
var time_passed = "Time: %02d : %02d : %03d" % [mins,secs,mills]
text = time_passed
func timer_stop():
timer_on == false