From 90c8056e8c3124cbad6bae73a891cd6bc72f66c8 Mon Sep 17 00:00:00 2001 From: Johan Thelin Date: Sat, 19 Oct 2019 15:36:50 +0200 Subject: [PATCH] Change example signal name to animation_finished The AnimationPlayer signal used to demonstrate the yield function is called "animation_finished". --- getting_started/scripting/gdscript/gdscript_basics.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getting_started/scripting/gdscript/gdscript_basics.rst b/getting_started/scripting/gdscript/gdscript_basics.rst index 3d68fdb44..2914549da 100644 --- a/getting_started/scripting/gdscript/gdscript_basics.rst +++ b/getting_started/scripting/gdscript/gdscript_basics.rst @@ -1486,7 +1486,7 @@ signal is received, execution will recommence. Here are some examples:: yield(get_tree(), "idle_frame") # Resume execution when animation is done playing. - yield(get_node("AnimationPlayer"), "finished") + yield(get_node("AnimationPlayer"), "animation_finished") # Wait 5 seconds, then resume execution. yield(get_tree().create_timer(5.0), "timeout")