Merge pull request #6933 from JamesC01/patch-2

Mention the "Pick" button when connecting signals
This commit is contained in:
Max Hilbrunner
2023-03-10 15:02:36 +01:00
committed by GitHub

View File

@@ -349,9 +349,10 @@ Now we need to connect the ``HUD`` functionality to our ``Main`` script. This
requires a few additions to the ``Main`` scene:
In the Node tab, connect the HUD's ``start_game`` signal to the ``new_game()``
function of the Main node by typing "new_game" in the "Receiver Method" in the
"Connect a Signal" window. Verify that the green connection icon now appears
next to ``func new_game()`` in the script.
function of the Main node by clicking the "Pick" button in the "Connect a Signal"
window and selecting the ``new_game()`` method or type "new_game" below "Receiver Method"
in the window. Verify that the green connection icon now appears next to
``func new_game()`` in the script.
In ``new_game()``, update the score display and show the "Get Ready" message: