tmSetTileAnim

Animates a tile. Every cell showing it runs through the frames on the clock, so they all stay in step. A frameCount below 2 or msPerFrame below 1 stops the animation. Takes tileset (The tileset's handle), id (The tile id. 0 is empty, and ids from 1 are the tiles in the tileset), firstFrame (The tile id of the first frame), frameCount (How many tile ids in a row it uses), msPerFrame (How long each frame shows, in milliseconds). Returns nothing.

Tilemap

Parameters & Returns

Parameters

tileset Int
id Int
firstFrame Int
frameCount Int
msPerFrame Int

Returns

Void

Quick Summary

Animates a tile. Every cell showing it runs through the frames on the clock, so they all stay in step. A frameCount below 2 or msPerFrame below 1 stops the animation. Takes tileset (The tileset's handle), id (The tile id. 0 is empty, and ids from 1 are the tiles in the tileset), firstFrame (The tile id of the first frame), frameCount (How many tile ids in a row it uses), msPerFrame (How long each frame shows, in milliseconds). Returns nothing.

Technical Exegesis...

Animates a tile. Every cell showing it runs through the frames on the clock, so they all stay in step. A frameCount below 2 or msPerFrame below 1 stops the animation.

See the Tilemaps guide.

Returns nothing.

Example

Example.bam
tmSetTileAnim(tiles, 9, 9, 4, 120)