#TextureProgressBar how to reset value
6 messages · Page 1 of 1 (latest)
Yes. I commented that because the first one yes it refill the progress bar visually but my player is being killed by only 1 bullet it must be 8-10 bullets before completely depleted.
The second gives error "Invalid call. Nonexistent function 'update_shield' in base 'TextureProgressBar'."
Do you have e that function anywhere?
This is the full code content from other scene where update_shield() is.
extends MarginContainer
func update_score(value):
$ScoreLabel.text = "Score: %s" % value
func update_shield(max_value, value):
$TextureProgressBar.max_value = max_value
$TextureProgressBar.value = value