Pārlūkot izejas kodu

Fix Hide() in _ready() first player example code

Hide() on line 216 and 222 give an unintended result when the user following the tutorial is requested on line 354 to Play the Scene. The Player will not be shown.
Removing Hide() on line 216 and 222 will fix this.
Matt 4 gadi atpakaļ
vecāks
revīzija
a9a0e99fef
1 mainītis faili ar 0 papildinājumiem un 2 dzēšanām
  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.