TKTileAnimationFrame Class Reference

Inherits from NSObject
Declared in TKTileAnimation.h

Overview

Represents an animation frame in a Tile animation.

Creating an Animation Frame

+ frameWithTile:duration:

Creates an animation frame that will present the tile during an animation.

+ (nonnull instancetype)frameWithTile:(TKTileGID)tile duration:(float)duration

Parameters

tile

A global tile (without flags) to show during animation playback for this frame.

duration

The time (in seconds) the frame will be visible before switchging to the next (or previous) frame in the animation.

Return Value

A TKTileAnimationFrame instance.

Declared In

TKTileAnimation.h

– initWithTile:duration:

Creates an animation frame that will present the tile during an animation.

- (nonnull instancetype)initWithTile:(TKTileGID)tile duration:(float)duration

Parameters

tile

A global tile (without flags) to show during animation playback for this frame.

duration

The time (in seconds) the frame will be visible before switchging to the next (or previous) frame in the animation.

Return Value

A TKTileAnimationFrame instance.

Declared In

TKTileAnimation.h

Animation Frame Data

  tile

The global tile (without flags) to show for this animation frame.

@property TKTileGID tile

Declared In

TKTileAnimation.h

  duration

The duration (in seconds) this frame’s tile will be visible when running the animation.

@property float duration

Declared In

TKTileAnimation.h