![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | bgegg |
i make timer by this tutorial.
but this type is like this.
1:1:1
can i add zero?
extends RichTextLabel
var s = 0
var m = 0
var h = 0
func _process(delta):
if s > 59:
m += 1
s = 0
if m >59:
h += 1
m = 0
set_text(str(h) + ":" + str(m) + ":" + str(s))
func _on_Timer_timeout():
s += 1