"Your first game" tutorial problems

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By foxley

I’m doing the beginners tutorial here:

https://docs.godotengine.org/en/stable/getting_started/step_by_step/your_first_game.html

I was following it fine, but about 3/4 of the way in, everything becomes very confusing and it stops specifying what scene to put code into. It’s the part that starts with “Next, select the Player node in the Scene dock, and access the Node dock on the sidebar. Make sure to have the Signals tab selected in the Node dock.” (I can’t link it but you can Ctrl+F it)

It’s saying to make a game_over function and a new_game function, but making those in the Player.gd script doesn’t work, the IDE says “The identifier “score” isn’t declared in the current scope.” I thought I would try moving these functions to the Main.gd script, but that didn’t work either.

In any case I’m at the “Testing the scene” part and it won’t even run. Any ideas? Also any recommendations for better tutorials to use, this is just what I’m seeing on the website.

:bust_in_silhouette: Reply From: kidscancode

That text is in the “Main scene” section. You should be clicking on the Player node in the Main scene, not in the player scene. It’s right below where you were shown this image:

You connect those signals and the functions will be created in main.gd.