From 8ed7fd3c7097c8ebcf11264f381166632ca88989 Mon Sep 17 00:00:00 2001 From: TheYellowArchitect Date: Tue, 27 Sep 2022 07:08:53 +0000 Subject: [PATCH] Fixed inconsistent code All the code has 1 line in ready(), then suddenly at the "finished/full" script, it has a very old version which doesn't even compile (final argument gives error) Also, changed "check autostart property" to "enable autostart property" so it's more clear --- getting_started/step_by_step/signals.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/getting_started/step_by_step/signals.rst b/getting_started/step_by_step/signals.rst index 5824088cc..52e4268bb 100644 --- a/getting_started/step_by_step/signals.rst +++ b/getting_started/step_by_step/signals.rst @@ -246,7 +246,7 @@ this. .. image:: img/signals_15_scene_tree.png -With the Timer node selected, go to the Inspector and check the **Autostart** +With the Timer node selected, go to the Inspector and enable the **Autostart** property. .. image:: img/signals_18_timer_autostart.png @@ -350,7 +350,7 @@ Here is the complete ``Sprite2D.gd`` file for reference. func _ready(): var timer = get_node("Timer") - timer.connect("timeout", self, "_on_Timer_timeout") + timer.timeout.connect(_on_Timer_timeout) func _process(delta):