class flixel.addons.editors.spine.FlxSpine extends FlxSprite
Available on all platforms
A Sprite that can play animations exported by Spine (http://esotericsoftware.com/) * * @author Big thanks to the work on spinehx by nitrobin (https://github.com/nitrobin/spinehx). * HaxeFlixel Port by: Sasha (Beeblerox), Sam Batista (crazysam), Kuris Makku (xraven13)
Class Fields
static function readSkeletonData(DataName:String, DataPath:String, ?Scale:Float = 1):SkeletonData
Get Spine animation data. * *
DataName | The name of the animation data files exported from Spine (.atlas .json .png). * |
DataPath | The directory these files are located at * |
Scale | Animation scale |
Instance Fields
function new(skeletonData:SkeletonData, ?X:Float = 0, ?Y:Float = 0):Void
Instantiate a new Spine Sprite. *
skeletonData | Animation data from Spine (.json .skel .png), get it like this: FlxSpineSprite.readSkeletonData( "mySpriteData", "assets/" ); * |
X | The initial X position of the sprite. * |
Y | The initial Y position of the sprite. * |
Width | The maximum width of this sprite (avoid very large sprites since they are performance intensive). * |
Height | The maximum height of this sprite (avoid very large sprites since they are performance intensive). |