void SetTile(int x, int y, int layer, int tile)
Changes the tile index at the given coords on the given layer to the given tile.
Note: Coordinates are in terms of tiles, not pixels. In order to convert tiles to pixels do: (pixel coordinate / 16).
SetTile(0, 0, 1, 45); // Changes the tile at (0, 0) on layer 2 to tile 45.
There are no talkbacks on this documentation page yet. Post the first?
Doc Nav |
Your docs |