Reputation: 3
Recently I am learning godot4 but I have a problem, how to change the value of the progress bar when an object touches it, What can I do if I want to change the value of the progress bar from the player's script?
I was trying almost all the things in the internet about this problem but no one says about this for godot4 Please anyone help me
Upvotes: 0
Views: 891
Reputation: 1
I’m guessing you mean something life health bar. You can modify the value of the progress bar like these:
$Progressbar.value -= damage_amount
But if you mean something else, then kindly specifier also a screenshot can be help or link that describes what you are trying to achieve.
Upvotes: 0