class flixel.addons.tile.FlxTileSpecial extends FlxBasic
Available on all platforms
Class Fields
Instance Fields
function addAnimation(tiles:Array<Int>, ?frameRate:Float = 30, ?framesData:Array<AnimParams> = null):Void
Add an animation to this special tile *
tiles | An array with the tilesetID of each frame * |
frameRate | The speed of the animation in frames per second (Default: 30) |
function getAnimationTilesId():Array<Int>
Get the animation tiles id if any *
returns | An array of ids or null |
function getCurrentTileId():Int
Returns the current tileID of this tile in the tileset *
returns | The current tileID |
function getMatrix(width:Int, height:Int):Matrix
Calculates and return the matrix *
width | the tile width * |
height | the tile height * |
returns | The matrix calculated |
function setAnimationRects(rects:Array<Rectangle>):Void
Set the animation rectangles for flash *
rects | An array with rectangles |