time-sampling-form/godot/TimerBar.gd
2023-03-29 08:59:51 +08:00

15 lines
203 B
GDScript

extends ProgressBar
onready var global_ints = $"/root/GlobalInts"
var time_lefts : int
func _ready():
pass
func _process(_delta):
time_lefts = $"%TwentySecondTimer".time_left
value = time_lefts