Category: Tilemap
Syntax:
tmSetTileAnim:Void(tileset:Int, id:Int, firstFrame:Int, frameCount:Int, msPerFrame:Int)
Void
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.
View detailed documentation online
tmSetTileAnim(tiles, 9, 9, 4, 120)
BambooBasic © 2026 Michael Denathorn