time-sampling-form/godot/TimerBar.gd

15 lines
204 B
GDScript3
Raw Normal View History

2022-11-01 09:28:59 +00:00
extends ProgressBar
2023-03-03 12:14:13 +00:00
@onready var global_ints = $"/root/GlobalInts"
2022-11-01 09:28:59 +00:00
var time_lefts : int
func _ready():
pass
func _process(_delta):
time_lefts = $"%TwentySecondTimer".time_left
value = time_lefts