Browse Source

Move GDScript text onto tip in 2D Getting started 03 chapter (#5732)

Edward 3 years ago
parent
commit
68a5e6d81f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      getting_started/first_2d_game/03.coding_the_player.rst

+ 2 - 2
getting_started/first_2d_game/03.coding_the_player.rst

@@ -267,11 +267,11 @@ diagonal movement.
 We also check whether the player is moving so we can call ``play()`` or
 We also check whether the player is moving so we can call ``play()`` or
 ``stop()`` on the AnimatedSprite.
 ``stop()`` on the AnimatedSprite.
 
 
-         ``$`` is shorthand for ``get_node()``. So in the code above,
+.. tip:: ``$`` is shorthand for ``get_node()``. So in the code above,
          ``$AnimatedSprite.play()`` is the same as
          ``$AnimatedSprite.play()`` is the same as
          ``get_node("AnimatedSprite").play()``.
          ``get_node("AnimatedSprite").play()``.
 
 
-.. tip:: In GDScript, ``$`` returns the node at the relative path from the
+         In GDScript, ``$`` returns the node at the relative path from the
          current node, or returns ``null`` if the node is not found. Since
          current node, or returns ``null`` if the node is not found. Since
          AnimatedSprite is a child of the current node, we can use
          AnimatedSprite is a child of the current node, we can use
          ``$AnimatedSprite``.
          ``$AnimatedSprite``.