Static Functions
create(spriteContent:String):Sprite
Description
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<Sprite>
Description
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
currentAnimation
Type
String
Initial Value
n/a
Description
currentFrame
Type
Int
Initial Value
n/a
Description
totalFrames
Type
Int
Initial Value
n/a