r3-next/levels/timelimit.gd
2023-10-24 09:36:04 -07:00

7 lines
240 B
GDScript

extends Label
func _process(delta: float) -> void:
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));