Phoenixongogo, make sure you’re calling mte.enableSpriteSorting = true before you load your map. That is the most common cause of this sort of error.
Kumarks, I suggest looping through the map’s tile properties to determine which tiles have the property you’re looking for, and then looping through the map’s world data table to find the locations of those tiles. You can then convert that location to a level position using mte.locToLevelPos() and spawn your sprites.
--FIND TILE LOCATIONS WITH PROPERTY local map = mte.getMap() local layer = 16 local property = "temp1" local tileIDs = {} for i = 1, #map.tilesets, 1 do if map.tilesets[i].tileproperties then for key,value in pairs(map.tilesets[i].tileproperties) do if value[property] then if not tileIDs.key then tileIDs[key] = true end end end end end for x = 1, #map.layers[layer].world, 1 do for y = 1, #map.layers[layer].world[x], 1 do for key,value in pairs(tileIDs) do if map.layers[layer].world[x][y] == key + 1 then print("found", x, y) print(mte.locToLevelPos(x, y)) --Spawn your sprites end end end end