r3-next/levels/timelimit.gd
2024-01-13 19:59:55 -07:00

8 lines
290 B
GDScript

extends Label
func _process(delta: float) -> void:
if Global.wait != null && Global.live == 1:
if (Global.timelimit - (Time.get_ticks_msec() - Global.wait)) > 0:
set_text("Time: " + str((Global.timelimit - (Time.get_ticks_msec() - Global.wait))/1000));
else:
set_text(str(0));