how to do countdowns?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Jeejus

hey guys, i’m new to coding in godot and just wondering;
does anyone know how to make a countdown timer, then for something to disappear after its over?

:bust_in_silhouette: Reply From: GameVisitor

You could use a timer with one_shot = false and wait_time = X where X = number of seconds you want this timer to trigger (countdown finishes). You will need to attach a script to the timer signal “timeout” as per the below:

enter image description here

then in your script you play an animation or hide your object.