Used to animate tilesets in one background file, it animates horizontal and vertical strips
from left to right and from top to bottom.
This object can have more than one animation but the tiles must be in the same layer
An object setter is required for animating chunks of tiles(you don't have to set any object if you
don't want to, just put one in the tileset so its tiles are splited).
How to use
Set animLayer to the layer where the animated tiles are, then set the region of the first frame in the animation
(relative to the background), and animLengths to the number of frames of each animation
Set animType to 0 if the frames are aligned vertically(with the first frame on the top)
or set it to 1 if the frames are aligned horizontally(with the first frame on the left)
The following arrays must have the same size and be set in creation code
Name | Value | Description |
---|---|---|
animLayer | 1000000 | sets the layer of the animations, this object will only replace the tiles in this layer |
animLayerOffset | 0 | increase this number if two objSingleTilesetAnimation are conflicting |
animateOnTransition | true | |
stopOnFlash | false | |
deleteOriginals | false | this object makes the tiles for the animation over the originals if for whatever reason you don't want the original non animated tiles set this to true |
init | 0 | Internal use only |
variable names in bold are safe to set in creation code.
Name | Value | Description |
---|---|---|
frozen | 0 |