What’s inside this box? A lot of puzzles! Can you solve all 30?3.98 / 5.00 4,613 Views
Use the mouse to navigate menus and to queue and cancel robot actions.3.70 / 5.00 1,657 Views
Made for the Adventure Jam 2016!3.65 / 5.00 2,012 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