Textured progress cant go higher than 10

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Newby

my texture progress is a health bar i made for my player and enemies. the health lowers down correctly if the max value is 10, but when i go to 20 it doesnt decrease when the value is at 19 and when the value is 1 the progress bar is gone. it works when i set the min value to -1 for 20 but my enemies hp goes up to 1000+ and i need to change the min value again. pls help

:bust_in_silhouette: Reply From: ConnyOnny

This sounds like a bug. Can you reproduce the behavior in a blank project with nothing else inside? If so, please file a bug report here: Issues · godotengine/godot · GitHub

As a workaround you could just set the progress bar max value to 10 and then scale the current HP respectively like this:

progress = (enemy_current_hp / enemy_max_hp) * 10

found the problem my progress bar has a invisible texture at the bottom…whoops

Newby | 2018-07-27 12:48