Hi all, I'm new to Godot and working on a little Flappy Bird clone. I'm wondering why this code isn't spawning another Pillar every 1s. I have a Timer, and my on_timer_timout function is a Signal.
Here is the code:
var pillars = preload("res://scenes/pillars.tscn")
func _ready():
pass
func _process(delta):
pass
func _on_timer_timeout():
spawn_pillars()
func spawn_pillars():
var p = pillars.instantiate()
add_child(p)```
**EDIT:** I didn't have Autostart selected 🙂 I'm still curious to know if this is a good way to handle this.