Animation#
Animation drafts are used to define an animation. To actually attach an animation to a building, you need to use animation tag with an animation object.
Attributes#
color#
Type: Color
date#
Type: Animation date
frame#
Type: integer
or integer
array
frame shift#
Type: integer
By default, the value will be 1.
frames#
Type: integer
or integer
array
If defined, will be prioritized over frame tag.
id#
Type: string
ID of the animation draft to use.
in summer#
Type: boolean
By default, the value will be false.
in winter#
Type: boolean
By default, the value will be false.
is burning#
Type: boolean
By default, the value will be false.
night light probability#
Type: float
By default, the value will be 1.
on crime#
Type: boolean
By default, the value will be false.
on fire#
Type: boolean
By default, the value will be false.
rotation aware#
Type: boolean
By default, the value will be false.
seed#
Type: integer
By default, the value will be determined automatically by the game.
shift#
Type: integer
By default, the value will be the index of the object in the animation array.
x#
Type: integer
Position of the animation on a horizontal axis. Value of 0 is at the leftmost edge.
By default, the value will be 0.
y#
Type: integer
Position of the animation on a vertical axis. Value of 0 is on the middle of the tile.
By default, the value will be 0.