3D action driving game3.74 / 5.00 5,892 Views
Manage and train heroes to build up a world-renowned adventure agency!3.80 / 5.00 24,462 Views
The Snake/Pinball mashup you never knew you wanted.3.54 / 5.00 4,324 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