My Dodge the creep code does not work.

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

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.

Greetings,
Jabba

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.

kidscancode | 2019-04-12 18:23

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 ‘start_game’: ‘CanvasLayer(HUD.gd)::new_game’: Method not found.
core/object.cpp:1238 @ emit_signal()
HUD.gd:24 @ _on_StartButton_pressed()”

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

jabba | 2019-04-14 09:19

:bust_in_silhouette: Reply From: kidscancode

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.