Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Juliang2000 |
I want to have a life bar in which the user clicks on a button and it increases from 10 to 10 as I can do it
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Juliang2000 |
I want to have a life bar in which the user clicks on a button and it increases from 10 to 10 as I can do it
Reply From: | aa |
A good idea is to go through the getting started chapter of the Godot documentation.
In short, you would create a Button node and connect it with signals to another GUI element like a ProgressBar node.
A tutorial for what you’re looking for in particular can be found in the chapter Control the game’s UI with code. It’s a good idea however to start at the beginning and work your way through.