Specifies frame-specific properties of an individual sprite within a RotatedSprite set. Some properties are absolute values, and some are relative and inherited from the parent RotatedSprite prototype definition.
width optional | :: SpriteSizeType | Width of the sprite in pixels, from 0-4096. [...] |
Width of the sprite in pixels, from 0-4096. [...] | ||
height optional | :: SpriteSizeType | Height of the sprite in pixels, from 0-4096. [...] |
Height of the sprite in pixels, from 0-4096. [...] | ||
x optional | :: SpriteSizeType | The horizontal offset of the sprite relative to its specific frame within the parent RotatedSprite. |
The horizontal offset of the sprite relative to its specific frame within the parent RotatedSprite. | ||
y optional | :: SpriteSizeType | The vertical offset of the sprite relative to its specific frame within the parent RotatedSprite. |
The vertical offset of the sprite relative to its specific frame within the parent RotatedSprite. | ||
shift optional | :: Vector | The shift in tiles of this specific frame, relative to the shift of the parent RotatedSprite. [...] |
The shift in tiles of this specific frame, relative to the shift of the parent RotatedSprite. [...] |
height optional | :: SpriteSizeType | Height of the sprite in pixels, from 0-4096. [...] |
Height of the sprite in pixels, from 0-4096. [...] | ||
shift optional | :: Vector | The shift in tiles of this specific frame, relative to the shift of the parent RotatedSprite. [...] |
The shift in tiles of this specific frame, relative to the shift of the parent RotatedSprite. [...] | ||
width optional | :: SpriteSizeType | Width of the sprite in pixels, from 0-4096. [...] |
Width of the sprite in pixels, from 0-4096. [...] | ||
x optional | :: SpriteSizeType | The horizontal offset of the sprite relative to its specific frame within the parent RotatedSprite. |
The horizontal offset of the sprite relative to its specific frame within the parent RotatedSprite. | ||
y optional | :: SpriteSizeType | The vertical offset of the sprite relative to its specific frame within the parent RotatedSprite. |
The vertical offset of the sprite relative to its specific frame within the parent RotatedSprite. |
Default: inherited width
Width of the sprite in pixels, from 0-4096. If not defined, inherits the width of the parent RotatedSprite.
Default: inherited height
Height of the sprite in pixels, from 0-4096. If not defined, inherits the height of the parent RotatedSprite.
Default: 0
The horizontal offset of the sprite relative to its specific frame within the parent RotatedSprite.
Default: 0
The vertical offset of the sprite relative to its specific frame within the parent RotatedSprite.
Default: {0, 0}
The shift in tiles of this specific frame, relative to the shift of the parent RotatedSprite. util.by_pixel()
can be used to divide the shift by 32 which is the usual pixel height/width of 1 tile in normal resolution. Note that 32 pixel tile height/width is not enforced anywhere - any other tile height or width is also possible.