So I need help with a health bar type of thing. I have a movieclip which is just a strait box and I have variable... so I need to know how to use a percentage so the box's height will decrease based on the variable.
HealthBar.scaleX = Health / 100;That would work. Make sure the point in the bar is all the way to the left. (for a horizontal shrinkage)
that would work if you place it in the right place xxxDDD
Place that code in a function called every frame (or every set number of milliseconds).
You must be logged in to post a reply!