Anyone know how the data array works in $dataMap?
What I understand:
There is 6 sets of width x height integers. Each sets identifies the tile (going from right to left and top to bottom). The sets are the layers, and are in order: ground, ground over, object 1, object 2, shadows, region ID. For the object layer, the integer represent the tile in the tileset.
What I don't understand:
In the ground layer, the numbers are big (like 2816), and I have no idea what they refer to.
I found a tutorial here but it seems to be missing quite a lot of information. I'm trying to find a way to identify all the tiles used, and I get how to do it for the objects layer, but I have no idea how to get the ground tiles.
What I understand:
There is 6 sets of width x height integers. Each sets identifies the tile (going from right to left and top to bottom). The sets are the layers, and are in order: ground, ground over, object 1, object 2, shadows, region ID. For the object layer, the integer represent the tile in the tileset.
What I don't understand:
In the ground layer, the numbers are big (like 2816), and I have no idea what they refer to.
I found a tutorial here but it seems to be missing quite a lot of information. I'm trying to find a way to identify all the tiles used, and I get how to do it for the objects layer, but I have no idea how to get the ground tiles.