Welcome to the theatre of your mind, Dale4.34 / 5.00 8,348 Views
ANIME-Y HIGHSCHOOL STUPID OTAKU ADVENTURE ACTION EXPLOSIONS YAY3.79 / 5.00 4,390 Views
Use your mouse to find a way to the exit. Grab the key first!3.74 / 5.00 5,763 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