tmSetTileFlip

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.

Tilemap

Parameters & Returns

Parameters

map Int
layer Int
x Int
y Int
flip Int

Returns

Void

Quick Summary

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.

Technical Exegesis...

Flips or turns the tile in a cell. Set it after tmSetTile, which resets it.

See the Tilemaps guide.

Returns nothing.

Example

Example.bam
tmSetTileFlip(map, ground, 5, 10, 1)