| Flash / Games | ©2012-2013 *JohnJensen |
EDIT #1 (19 feb 2012)
* Added so that when you aim, a blue line with a ball at the point the circle touches the ground (like in Skyward Sword =0) will show you the path the fruit will fly until it hits the ground if not hit by any other fruits. (Making a path which includes what'll happen when the fruit flys around and touches other fruits will kill your computer...unless...I split up everything into small boxes, and-- well..no I'm not going to look into that
)
* Fixed a bug where if you turned fruits off, then fruits on again the collision circles will still be shown.
hud.screenshot.addEventListener(MouseEvent.CLICK, function(e:MouseEvent):void
{
var ba:ByteArray = PNGEncoder.encode(displayBitmapData);
var fileReference:FileReference=new FileReference();
fileReference.save(ba, "rename_me.png");
});
Also if you're not using a bitmap to render your scene (which I've started always doing, since it's faster
i always use graphics to render my stuff, which runs smooth and it's best quality.
my frame rate is always 60 or 120, so using bitmap having to draw every time, every pixel is kind of harsh.
anyway thanks.