Skip to the content.

Static Functions

Function Name Description
create(spriteContent:String):Sprite Generates a Sprite object from a given content id path.
Parameters:
- spriteContent - The content id path of the sprite to be created.
createBatch(count:Int, spriteContent:String, animationId?:String, x?:Float, y?:Float, container?:Container):Array Batch method for generating numerous amounts of sprites in one call.
Parameters:
- count - The number of sprites to create
- spriteContent - The content id path of the Sprite to create
- animationId - The animation for the sprite to display
- x - X location of the Sprite
- y - Y location of the Spirte
- container - The container the Sprite should be added to

Instance Variables

Field Name Type Initial Value Description
currentAnimation String n/a
currentFrame Int n/a
totalFrames Int n/a

Instance Functions

Function Name Description
advance():Void
dispose():Void
getPalette():Map<Int,Int>
goToFrameLabel(label:String):Void
hasAnimation(animation:String):Bool
setPalette(value:Map<Int,Int>):Map<Int,Int>