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

in Engine by (29 points)
edited by

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

by (66 points)
selected by

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 Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.