Single Animation Frame. Can be reused multiple times in Animation.

Constructor

@:value({ isKey : true })new (tile:Null<Tile>, duration:Float, isKey:Bool = true)

Create a new Animation Frame with specified tile (or null), duration and keyframe flag.

Variables

alpha:Float

Alpha value for this frame. Shortcut to color.a, and will create it as [1, 1, 1, alpha] if it's null.

color:Null<Vector>

Override color multiplier for this frame.

duration:Float

Frame display duration in seconds.

eventEnter:String

Specifies event, triggered when this frame is activated.

eventExit:String

Specifies event, triggered when this frame is deactivated. If animation is paused during exit trigger, this frame will remain active.

isKey:Bool

Is this frame a keyframe? (default: true) Keyframes are not skipped when Animation accumulated more than one frame between updates.

tile:Null<Tile>

An h2d.Tile this frame should display. Can be null to show nothing.