time-sampling-form/godot/TimerBar.gd

15 lines
204 B
GDScript3
Raw Normal View History

2023-10-05 22:52:48 +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