#clickergame bug
1 messages · Page 1 of 1 (latest)
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
In this lesson, we will look at signals. They are messages that nodes emit when something specific happens to them, like a button being pressed. Other nodes can connect to that signal and call a fu...
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!
Groups in Godot work like tags in other software. You can add a node to as many groups as you want. Then, in code, you can use the SceneTree to: Get a list of nodes in a group., Call a method on al...
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