SOLVED Add a tile from a tile set to a tile map on a tile layer.

Neptune

Member
GML:
var map_id = layer_tilemap_get_id(layer_get_id("layer"));

// add tile index 7 to say... tilemap cell (4,6)
Any idea what function I'm missing to add/create a tile? 😅

[edit] Got it.

GML:
var tile = tilemap_get(map_id,tile_x,tile_y);
tile = tile_set_index(tile,t_index);
tilemap_set(map_id,tile,tile_x,tile_y);
 
Last edited:
Top