Home

RotatedAnimation

Type

struct

Properties

layers

If this property is present, all RotatedAnimation definitions have to be placed as entries in the array, and they will all be loaded from there. layers may not be an empty table. Each definition in the array may also have the layers property.

If this property is present, all other properties, including those inherited from AnimationParameters, are ignored.

direction_count

Only loaded if layers is not defined.

The sequential animation instance is loaded equal to the entities direction within the direction_count setting.

Direction count to Direction (animation sequence number):

filename

Only loaded, and mandatory if layers, stripes, and filenames are not defined.

The path to the sprite file to use.

filenames

Only loaded if both layers and stripes are not defined.

lines_per_file

Only loaded if layers is not defined. Mandatory if filenames is defined.

slice

Only loaded if layers is not defined. Mandatory if filenames is defined.

still_frame

Only loaded if layers is not defined.

counterclockwise

Only loaded if layers is not defined.

middle_orientation

Only loaded if layers is not defined.

orientation_range

Only loaded if layers is not defined.

Automatically clamped to be between 0 and 1.

apply_projection

Used to fix the inconsistency of direction of the entity in 3d when rendered and direction on the screen (where the 45 degree angle for projection is used).

Only loaded if layers is not defined.

stripes

Only loaded if layers is not defined.