Constructor

new(sceneName:String, tilesheet_ref:String, tilesheet_action_ref:String)

Variables

@:value(null)action:TTilesheetAction = null

@:value(0)frame:Int = 0

@:value(false)paused:Bool = false

@:value(0.0)tileX:Float = 0.0

@:value(0.0)tileY:Float = 0.0

Methods

getFrameOffset():Int

Returns the current frame.

Returns:

Frame offset with 0 as the first frame of the active action.

@:value({ onActionComplete : null })play(action_ref:String, ?onActionComplete:() ‑> Void):Void

setFrameOffset(frame:Int):Void

Set the frame of the current active tilesheet action. Automatically un-pauses action.

Parameters:

frame

Frame offset with 0 as the first frame of the active action.