progress bar doesn't fully decrease to 0

hey , just following a tutorial for progress bars , made player that have health and stamina , and the player have a sprint ability by pressing the left shift key , so by pressing the shift key the speed will increase and the progress bar (stamina) decreases to 0 but in my case the progress bar doesn’t completely reduce to 0 , just like in the picture

I’ll need to see the blueprint attached to that progress bar

You are still not showing where you are deducting from the stamina bar within the Widget. Please show a screenshot of this as well.

On another note, your boolean IsSprinting is not being used for anything at the moment. Maybe it will in the future? But as of now it serves no purpose and can probably be removed.

ckeck the first picture for the widget , i have uploaded it .

What are the default values of:

  • Player Stamina
  • Sprint Cost

I expect the sprint cost is slightly more than the value of stamina being taken away due to the timing of events so it gets stuck in a point of not enough stamina to do the final tick but enough to be shown on stamina bar.

This also seems an odd way of doing sprinting… overly complex and confusing… just my two cents…

Default value of :
plyaer stamina : 1.0
sprint cost : 0.1

The problem is in your picture 1 where you compare two floats of equality ( 0.099999999 >= 0.1 → false ) so just use (player stamina > 0)

still the same , nothing have changed . sorry for bothering btw

yes saw it :wink: in pic 2 the same (player stamina >0 ) for the branch

oh thank you so much its working