Hello,
In the godot documentation for yield(), the example is given:
func _ready():
yield(countdown(), "completed") # waiting for the countdown() function to complete
print('Ready')
func countdown():
yield(get_tree(), "idle_frame") # returns a GDScriptFunctionState object to _ready()
print(3)
yield(get_tree().create_timer(1.0), "timeout")
print(2)
yield(get_tree().create_timer(1.0), "timeout")
print(1)
yield(get_tree().create_timer(1.0), "timeout")
prints:
3
2
1
Ready
Is the "Idle_frame" signal emitted immediately after _ready()? Even when ready is yielded?
Thank you for the help.