0 votes
in Engine by (60 points)

1 Answer

0 votes
$ProgressBar.value = number

Your question is a bit vague if this isn't what your looking for could please give a bit more information and I will try to help more.

by (61 points)

I made a strip of hp, but I can not do it so that it would not be made more than 50.

func _physics_process(delta):
get_node("Control/Healbar").set_value(hp)
if hp >= 1:
    hp += delta * 2
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.