you could also look at using lerp.
so if you had an instance variable called ivHealth
healthbar set width to lerp(self.width,self.ivHealth,0.01)
Hey, I'm currently using event:
healthbar set width to "(HP/maxHP)*barMaxHP.Width"
With my healthbar being a sprite that places itself on another sprite which is the maxHP.
How do I combine this code with the Lerp thingy? I can't figure it out since I don't really understand perfectly what lerp does.