Making my first game and cant get the scrypt working

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

so recently i started working on my very first game because since i was little my dream was game making. a made a few pixel art for my game and now when i started working on the actual game i keep getting an error. im trying to make a cooki clicker type of game but with dogs instead

i dont really know much about coding so probably there willl be a lot of problems

func _on_Texture_button_pressed():
woofs += pluswoofs
$Canvas/RichTextLabel.text = (woofs)

and i keep having this error message "E 0:00:07:0123 emit_signalp: Error calling from signal ‘pressed’ to callable: ‘Node2D(’: Method not found.
<C++ Source> core/object/object.cpp:1058 @ emit_signalp() "

:bust_in_silhouette: Reply From: GameSchool

This error shows that you’re trying to call a method that doesn’t exist.
Looks like there are no _ in the name of the function you’re referring to.

Indeed, make sure when you are connecting the signal to the function call that the function name (3rd argument to connect function) matches the function name exactly

godot_dev_ | 2023-04-10 13:20

Thank for the help but i still have plenty of things i need help in.
Do you have a discord or something maybe we can talk?

Max_8546 | 2023-04-10 13:27

I don’t use discord, but if you split you task into sub problems and ask a question on these forums to get help, I’d be happy to help (it may also help others)

godot_dev_ | 2023-04-14 17:31