Check your knowledge with fun about fine arts4.07 / 5.00 3,431 Views
Control bullets with your mind4.03 / 5.00 15,015 Views
Unlock and upgrade vehicles and drive your way through zombie hordes in order to escape.3.83 / 5.00 18,187 Views
My variable is plsr, I want my rectangular shape to represent the variable by a %age.
When plsr = 0, the bar(rectangle) will show 0% size on the Y-Axis
When plsr = 100, the bar will return to 100% size on the Y-Axis
Similar to a health bar, but I just forget how to do this, I'm basically trying to show the variable increasing on the Y-Axis with a rectangular bar.
Oh yeah, and the property you're looking for is _yscale in as2 and scaleY in as3.
In as2 _Yscale goes between 0-100;
In as3 scaleY goes between 0-1;
If ya have something to say, PM me. I have a lot of time to spare.
Also never PM egg82.
At 5/20/11 11:17 PM, therealsockpuppet wrote: bar.scaleY == plsr*.1
At 5/21/11 12:02 AM, Torrunt wrote: Just some simple math:
thing.height = maxHeight * (value/valueMax);
Don't forget that height is for Stage.height in AS2, if it's as2 then it's
thing._height = maxHeight * (value/valueMax); //or thing._yscale = value
Slint approves of me! | "This is Newgrounds.com, not Disney.com" - WadeFulp
"Sit look rub panda" - Alan Davies