I think i found an engine bug with timer node

Godot Version

4.4.1

Question

So i have a class that has a button and a timer. This timer is a cooldown of a button. I have the same setup for multiple objects and it works. But in this exact scene when the timer hits zero it starts again. I do have autostart == false. I also checked timer.timeout.get_connections() and it has nothing, the only thing connected to the button_pressed func is the button and the function does not even get called when it resets. I did fix it by doing

func timerFix():
	cooldownTimer.stop()

So it does have autostart == true even though i set it to false

Can you paste the rest of your code, it would be hard to fix this without it if it is an engine bug.

== is checking for equivalence, not assigning anything. If you have code with == to set autostart to false, it won’t do anything.

2 Likes