Static Functions
Sprite.create(spriteContent:String):Sprite
description
Generates a Sprite object from a given content id path. Parameters:
- The content id path of the sprite to be created.
Sprite.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:
- The number of sprites to create
- The content id path of the Sprite to create
- The animation for the sprite to display
- X location of the Sprite
- Y location of the Spirte
- The container the Sprite should be added to
Instance Variables
currentAnimation
Type
String
currentFrame
Type
Int
totalFrames
Type
Int