r3-next/levels/timelimit.gd

9 lines
290 B
GDScript3
Raw Normal View History

2023-10-24 18:36:04 +02:00
extends Label
func _process(delta: float) -> void:
2024-01-14 03:59:55 +01:00
if Global.wait != null && Global.live == 1:
2023-12-02 21:44:54 +01:00
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));