Hey @espiero, your problem is your while
loop. The timer and your script are running in the same thread, which means that anything in your _ready()
function has to complete before the timer can update. Since the condition of your while
loop is true the script will print $Timer.time_left
without fail. However this means the timer can't update itself, so you end up getting stuck in your while loop forever until it crashes.
I'd recommend looking at _process()
and avoiding while loops for what you're trying to do (something like if $Timer.is_stopped(): do_the_thing_once()
.