Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | v32itas-0 |
I’m following this tutorial:
https://docs.godotengine.org/en/stable/getting_started/step_by_step/your_first_game.html#main-script
And this part
Next, click on the Player and connect the hit signal. We want to make
a new function named game_over, which will handle what needs to happen
when a game ends. Type “game_over” in the “Method In Node” box at the
bottom of the “Connecting Signal” window. Add the following code, as
well as a new_game function to set everything up for a new game:
Is a bit unclear to me
What is most unclear to me is ‘click on the Player’ part. I would assume its about clicking on Player node tab that is open. But then it’s either I’m in wrong place, or the namings of things are different
Because if I proceed ant enter game_over, to the bottom of the ‘Connect a Signal to a Method’ window. That adds a function to Player.gd script.
And if I proceed with a tutorial
by adding new_game function as shown
The error is making sense to me since score is declared in Main.gd. But this tutorial part does not make sense to me
TLDR: How exactly you’re supposed to Next, click on the Player and connect the hit signal. in this guide