how can I create a life bar that will be on call when the player clicks on a button

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: 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

:bust_in_silhouette: 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.