Skip to main content

Interface: AnimationCreationParams

Defined in: animations/utilities/create-animation.ts:64

Optional parameters for creating an animation.

Properties

endPositionPercentage

endPositionPercentage: Vector2

Defined in: animations/utilities/create-animation.ts:74

The ending position of the animation frames in the sprite sheet, as a percentage.

Default

(1, 1).

startPositionPercentage

startPositionPercentage: Vector2

Defined in: animations/utilities/create-animation.ts:69

The starting position of the animation frames in the sprite sheet, as a percentage.

Default

(0, 0).