- Edited
It's not very clear in the documentation, but the coordinates of the tile within your tile atlas are actually a different argument in set_cell
. So instead of:
set_cell(x, y, tile_number)
you would use (assuming your tile atlas has id=0
, which it sounds like it does):
set_cell(x, y, 0, false, false, false, tile_atlas_coords)