Files
Embodiment/GUI/Countdown Timer.gd

8 lines
215 B
GDScript

extends Label
func _process(delta: float) -> void:
var time_seconds: int = int($Timer.get_time_left())
set_text('%02d:%02d' % [time_seconds, int(($Timer.get_time_left() - time_seconds) * 100)])
return