This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
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.
https://docs.godotengine.org/en/3.0/getting_started/step_by_step/your_first_game.html
Can someone look over the script of "my game"
It can be downloaded from the following link:
https://we.tl/t-YmqGqy7Orj

I hope someone can tell me what I did wrong.

Greetings,
Jabba

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
StartButton_pressed()"

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 (22,191 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 Frequently asked questions and 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 [email protected] with your username.