Category: Tilemap
Syntax:
tmSetTileFlip:Void(map:Int, layer:Int, x:Int, y:Int, flip:Int)
Void
Flips or turns the tile in a cell. Set it after tmSetTile, which resets it.
Takes map (The map's handle), layer (The layer's number, from tmAddLayer or tmGetLayer), x (The tile column, from 0), y (The tile row, from 0), flip (Add together: 1 flips across, 2 flips up and down, 4 turns 90 degrees clockwise, with the turn first. On a hexagonal map, 8 turns 60 degrees and 16 turns 120, and those replace 4).
Returns nothing.
View detailed documentation online
tmSetTileFlip(map, ground, 5, 10, 1)
BambooBasic © 2026 Michael Denathorn