tmSetTileFlip
Category: Tilemap — Tiles
Syntax:
tmSetTileFlip:Void(map:Int, layer:Int, x:Int, y:Int, flip:Int)
Parameters
- map : Int - The map's handle.
- layer : Int - The layer's number, from tmAddLayer or tmGetLayer.
- x : Int - The tile column, from 0.
- y : Int - The tile row, from 0.
- flip : Int - 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.
Summary
Flips or turns the tile in a cell. Set it after tmSetTile, which resets it.
See the Tilemaps guide.
Example
tmSetTileFlip(map, ground, 5, 10, 1)
BambooBasic © 2026 Michael Denathorn