0 votes

Hi I want to make it so pressing the right, left, up, down, attack, defense or jump button will start a countdown and during that countdown will check for more button combos. How do I start that countdown?

in Engine by (203 points)

1 Answer

+1 vote

You can use a Timer node.
Relevant notes:

oneshot property - so it doesn't loop
wait
time - how much time the timer waits for
time_left - you can use this variable, check if it's greater than 0
finished() [signal] - alternatively wait for the signal to stop checking for inputs

by (61 points)

Ok and how does waittime work? Like does the wait time show the countdown in seconds? If the wait time is 1 then it counts for 1 second?
And time_left is where the timer is currently right?

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 [email protected] with your username.