0 votes

Lets say I have a timer, timer has a wait time of 1s, it is active and timeleft != 0. I then assign a new value as wait time, lets say 2s. Does the timer starts counting to 0 from 2s or does it add those 2s to timeleft from previous count.

Godot version 3.2.3.stable
in Engine by (17 points)

1 Answer

+2 votes
Best answer

Hello,

If you assign a new value to the timer, the timer will count from 0 to the new value.
There is no reason for it to be otherwise unless you want to add previous value to the new one .

by (209 points)
selected by

By quoting Mando: This is the way

Makes sence, had to ask. Sorry for late reply.

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.
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.