mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
Update "The Main Game Scene" for clarity
Many people have reported having issues connecting HUD's start_game and the main node's new_game() in the next step of this tutorial. This occurred for me because the documentation states that "new_game()" should be removed from the _ready() function, but does not include instructions to add "pass" back (and pass is not left in the example code when "new_game()" is added to the function, so the initial one will not remain). Having the function declaration without "pass" breaks all the following functions, preventing new_game() (or any Main functions) from being connected.
This commit is contained in:
@@ -288,7 +288,7 @@ You should be able to move the player around, see mobs spawning, and see the
|
||||
player disappear when hit by a mob.
|
||||
|
||||
When you're sure everything is working, remove the call to ``new_game()`` from
|
||||
``_ready()``.
|
||||
``_ready()`` and replace it with ``pass``.
|
||||
|
||||
What's our game lacking? Some user interface. In the next lesson, we'll add a
|
||||
title screen and display the player's score.
|
||||
|
||||
Reference in New Issue
Block a user