0 votes

if $ProgressBar.value == 100:
if s > 0 :
s-= 1
$time.show()
$time.set_text(str(s))
$ProgressBar.hide()

func onTimer_timeout():
s -=1
sorry my original code is a bit messy and might confuse u guys but heres my problem:
the countdown would count too fast like literally it would finish instantly.
so the plan here is that the timer would countdown from 60secs to 0

asked Dec 7, 2019 in Projects by Regret (29 points)
edited Dec 7, 2019 by Regret

1 Answer

+1 vote
Best answer

you want to multiply it by your delta value... so if you are running this in your process(delta) function you want to multiply the value you are negating by delta

s-=1*delta

answered Dec 7, 2019 by Salvakiya (64 points)
selected Dec 7, 2019 by Regret

Thanksss you very muchh

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.