class flixel.addons.tile.FlxTileSpecial extends FlxBasic

Available on all platforms

Class Fields

static var ROTATE_0:Int

static var ROTATE_270:Int

static var ROTATE_90:Int

Instance Fields

var tileID:Int

The id of this tile in the tileset

function new(TilesetId:Int, FlipHorizontal:Bool, FlipVertical:Bool, Rotate:Int):Void

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 destroy():Void

function getAnimationTilesId():Array<Int>

Get the animation tiles id if any *

returns

An array of ids or null

function getBitmapData(width:Int, height:Int, rect:Rectangle, bitmap:BitmapData):BitmapData

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 hasAnimation():Bool

function isFlipped():Bool

function isSpecial():Bool

function setAnimationRects(rects:Array<Rectangle>):Void

Set the animation rectangles for flash *

rects

An array with rectangles

function update():Void