Article Directory
1. Import font files
First import the font file, Godot TTF and OTF supports two common font formats.
2. set up the scene
3. The basic parameters of the Label
4. CreateDynamicFont
5. Set Timer
6. timer script
#Counter.gd
extends Label
var time = 0
func _ready():
text = str(time)
$"../Timer".connect("timeout",self,"count")
func count():
time += 1
text = str(time)