Timer Timeout signal never triggers

Godot Version

4.2.2

Question

Really not sure what is going on here.
The second image…the Timer starts…but never stops (I assume) so it never triggers the timeout() function. I copied another timer code that works perfectly…but this second one doesn’t.

Image 1 (Working Timer)
Imgur

Image 2 (Timeout() never triggers)
Imgur

Need help!

Because you queue_free the object on line 14, so the Timer gets destroyed and doesn’t have the time to reach the timeout.

2 Likes

No kidding. I am dumb! lol. I am sorry for the bonehead post.

So I need to move the queue_free to the timeout() function. Would there be a better way to do this? I want the coin to disappear immediately…but the user get notified that they found a coin…then that message should get cleared. Basically a temporary pop up message.

You can see I am using a label to store messages to the user.

1 Like