Hiya!
I've done this a bunch of times before but now my brain just locked up and I can't figure it out.
So I have a progress bar showing the players health.
so you have 100 health and gets hit with damage 50, reducing your life to 50 or 50%. That I'd like to graphicly display with my health-bar.
like a preloader you check if (framesLoaded==totalFrames)
so I know this is a very simple formula and you guys should be able to crack it.
my healthbar.scaleX should display the percentage left of my life graphicly
How?