Hello fellow flixels!
I am here today to announce FlxAdvSprite
This class, which is a derivative of the works of Simon Rozner
, allows for both animation and baked rotation.Usage
Using FlxAdvSprite is pretty much just like using any regular FlxSprite, except you need to provide number of rotations to create when instantiating it.
var _mySprite : FlxAdvSprite = new FlxAdvSprite( SimpleGraphic, 360, _xpos, _ypos);
After that you can use it just like a regular FlxSprite, e.g. addAnimation(), play(), angle etc.Get it!
I've attached the source .as file with this post so you should be able to download it from there. Otherwise, you can download it from the github repository