Hi!
You have to use the TLN_SetTilemapTile() function and set the corresponding tileset bits in Tile structure.
I assume that tilemap here has already been loaded and contains two tilesets, and that now you want to set tile at row 5, column 3 to index 100 of the second tileset. You'll do this:
Let me know!
You have to use the TLN_SetTilemapTile() function and set the corresponding tileset bits in Tile structure.
I assume that tilemap here has already been loaded and contains two tilesets, and that now you want to set tile at row 5, column 3 to index 100 of the second tileset. You'll do this:
Code:
Tile tile = {0};
tile.tileset = 1; /* use second tileset, first tileset has index 0 */
tile.index = 100; /* tile index 100 */
TLN_SetTilemapTile(tilemap, 5, 3, &tile);
Let me know!