r3-next/backgounds/Label3.gd

9 lines
353 B
GDScript3
Raw Permalink Normal View History

2023-09-08 22:55:16 +02:00
extends Label
func _process(delta: float) -> void:
var hour = int(Global.time / 3600000)
var min = int(Global.time / 60000) - (hour * 60)
var sec = int(Global.time / 1000) - (min * 60) - (hour * 3600)
set_text("Your time: " + str(hour) + ":" + str(min) + ":" + str(sec) + ":" + str(Global.time - (sec * 1000) - (min * 60000) - (hour * 3600000)));