Author Topic: FlxAdvSprite - FlxSprite with animation AND rotation  (Read 2068 times)

stalem

  • New Member
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
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.

Code: [Select]
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.
« Last Edit: Thu, Jan 30, 2014 by stalem »

paala

  • Contributor
  • ****
  • Posts: 250
  • Karma: +0/-1
    • View Profile
Re: FlxAdvSprite - FlxSprite with animation AND rotation
« Reply #1 on: Tue, Feb 4, 2014 »
Great!

FlowerInMyHeart

  • New Member
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: FlxAdvSprite - FlxSprite with animation AND rotation
« Reply #2 on: Wed, Sep 3, 2014 »
Great I was hoping this would come over from the old Wiki