Browse Source

Clarify first use of $ GDScript operator

Supersedes and closes #2427.
Rémi Verschelde 6 years ago
parent
commit
940df09acc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      getting_started/step_by_step/signals.rst

+ 2 - 0
getting_started/step_by_step/signals.rst

@@ -93,6 +93,8 @@ the signal is received. Let's make the Sprite blink:
     extends Node
     extends Node
 
 
     func _on_Timer_timeout():
     func _on_Timer_timeout():
+        # Note: the `$` operator is a shorthand for `get_node()`,
+        # so `$Sprite` is equivalent to `get_node("Sprite")`.
         $Sprite.visible = !$Sprite.visible
         $Sprite.visible = !$Sprite.visible
 
 
  .. code-tab:: csharp
  .. code-tab:: csharp