> And is there a way to make it runs until it reach the width instead of changing from 100% to 50%, for an exemplo?
set bar width to lerp(bar width,(original bar width * current health / max health),8*dt)[/code:2hs3b24l]
If you don't know what lerp and 8*dt mean, you can search "lerp" and "delta-time" on the manual, basically you can reduce the speed by half by changing it to 4*dt.
It's not working =/
It still change without run smoothly
I'll study these expressions for sure.
Edit: My bad, it's working. Thank you very much.
and oh my god. Lerp is like an Alien to me! My skills are far far far away from math haha