#clickergame bug

1 messages · Page 1 of 1 (latest)

near hill
#

Hi, if someone could help me with my clicker game, basically I would like the score at the top to increase when I click on the bill. I've tried a ton of scripts, pleeeeease

wheat tartan
#

take a look at https://docs.godotengine.org/en/stable/getting_started/step_by_step/signals.html -- you'll want some way for the label of the score to respond to the event of the bill being clicked on, which is something involving the gui_input on the bill and the text on the label

#

you might need some help making the two nodes find each other (especially if they're in different scenes or whatever). I find using groups very helpful for that!

#

you might get it started with a really simple toy problem first -- one scene containing one label ("click count: 0") & one button ("click me!"), all right next to each other before you figure out how to work with objects more distant from each other