Events
animationsChange(current:ReadOnlyArray<SpriteSheetAnimation>, previous:ReadOnlyArray<SpriteSheetAnimation>):Void
Event when animations field changes.
Constructor
Variables
Methods
inlineaddGridAnimation(name:String, start:Int, end:Int, frameDuration:Float):SpriteSheetAnimation
inlineaddGridAnimation(name:String, cells:Array<Int>, frameDuration:Float):SpriteSheetAnimation
This can be used to configure animations on simple grid spritesheets.
Parameters:
name | Name of the animation to add |
---|---|
start | Start cell of the animation |
end | End cell of the animation |
frameDuration | Duration of a single frame |
Returns:
SpriteSheetAnimation the resulting animation instance