Browse Source

Merge pull request #4464 from MattObs/patch-1

Fix Hide() in _ready() first player example code
Nathan Lovato 4 years ago
parent
commit
5ce942f8ba
1 changed files with 0 additions and 2 deletions
  1. 0 2
      getting_started/step_by_step/your_first_game.rst

+ 0 - 2
getting_started/step_by_step/your_first_game.rst

@@ -213,14 +213,12 @@ which is a good time to find the size of the game window:
 
     func _ready():
         screen_size = get_viewport_rect().size
-        hide() # Start the player hidden.
 
  .. code-tab:: csharp
 
     public override void _Ready()
     {
         screenSize = GetViewportRect().Size;
-        Hide(); // Start the player hidden.
     }
 
 Now we can use the ``_process()`` function to define what the player will do.