0 votes

Hi All,

I am verry new to programming and so also new to Godot.
I have followed the tutorial on Godot, but it seems like i cannot get my game to work.
Can someone look over the script of "my game"
It can be downloaded from the following link:

I hope someone can tell me what I did wrong.


in Engine by (29 points)

It's very unlikely that you'll get help with such a non-specific question.

You should include a description of what your problem is. If you are getting an error message, paste it here. If you're stuck on a particular step, describe what's going wrong.

Hi all,

I followed the tutorial on the godot learn page.
But it seems like the start button doesnt want to let the game start.
I get the following error:
"E 0:00:03:0000 Error calling method from signal 'startgame': 'CanvasLayer(HUD.gd)::newgame': Method not found.
core/object.cpp:1238 @ emitsignal()
HUD.gd:24 @ _on

I can not seem to get the start button call the method new game...

1 Answer

0 votes

It's saying there's not a new_game function in HUD.gd. This function should be located in your main script. It looks like you didn't connect the button to the right place. When you connect the signal here: https://docs.godotengine.org/en/latest/getting_started/step_by_step/your_first_game.html#connecting-hud-to-main

You need to select the "Main" node as the place the signal will be connected.

by (20,315 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.