I’m building a demo for a game I’m working on, however when working on the health bars for the UI, a few issues occur.
When the game starts, the health bar immediately fills. For reference, the max health is 100 and current health starts at 25.
When the health is updated using the updatehealth function, two things happen: if the player’s health is reduced, it goes to 0, if it goes up, it goes to 1.
The progress bar does nothing but care if the player has above 0 health or not, rather than being representation by a percentage.
If curren helth was 50 and helth max was 100 = 50/100 = 0.5 you need afte multiply it x 100 to get percentuage so you need add a note x 100.
It must help if you screenshot your windget blueprint too.