r3-cd/levels/timelimit.gd

8 lines
240 B
GDScript3
Raw Normal View History

2023-10-24 18:36:49 +02:00
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));