extends Node2D signal timeout func _process(_delta): if $Timer.time_left < 1 and not $Timer.is_stopped(): emit_signal("timeout") $CanvasLayer/CenterContainer/countdown.visible = false $CanvasLayer/CenterContainer/countdown.text = "%d" % $Timer.time_left # Called when the node enters the scene tree for the first time. func _ready(): $Timer.start()