How to make so that the value in the ProgressBar is restored to a certain number?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Comet
:bust_in_silhouette: Reply From: StoneForged
$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.

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):
if hp >= 1:
	hp += delta * 2

Comet | 2019-06-24 08:44