timer.connect("timeout", self, "_on_timer_timeout")
you connected timer
node to _on_timer_timeout
with timeout
signal.
if self.is_connected("timeout", timer, "_on_timer_timeout"):
but you checked if self
node is connected to _on_timer_timeout
with timeout
signal.
you should check it with timer
node, not self
if timer.is_connected("timeout", timer, "_on_timer_timeout"):
and the Timer
is a Node
should be added to scene.
it won't do anything before is added to scene.
timer = Timer.new()
add_child(timer)