Browse Source

Merge pull request #6222 from TheYellowArchitect/patch-2

[Signals] Fixed inconsistent code
Max Hilbrunner 2 years ago
parent
commit
a9cb21c69b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      getting_started/step_by_step/signals.rst

+ 2 - 2
getting_started/step_by_step/signals.rst

@@ -246,7 +246,7 @@ this.
 
 
 .. image:: img/signals_15_scene_tree.png
 .. 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.
 property.
 
 
 .. image:: img/signals_18_timer_autostart.png
 .. image:: img/signals_18_timer_autostart.png
@@ -350,7 +350,7 @@ Here is the complete ``Sprite2D.gd`` file for reference.
 
 
     func _ready():
     func _ready():
         var timer = get_node("Timer")
         var timer = get_node("Timer")
-        timer.connect("timeout", self, "_on_Timer_timeout")
+        timer.timeout.connect(_on_Timer_timeout)
 
 
 
 
     func _process(delta):
     func _process(delta):