time-sampling-form/godot/TimerBar.gd

15 lines
203 B
GDScript3
Raw Normal View History

2022-11-01 09:28:59 +00:00
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