3D Action Driving Game3.64 / 5.00 5,074 Views
A paranormal curse is killing students at a high school...and you're next.3.58 / 5.00 5,400 Views
Help CrazyDad turn off a pesky neon sign or he’ll go crazy!3.55 / 5.00 8,064 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