What is the correspondence between tiles and data number in RMMV?
Here is the problem I met when I tried to change the tile data in my .js script.
1. First, I'll show you the data structure of the map:
2. Second, here is the tile group I used to draw this map:
A1: B: C:
3. When I put the first tile in A1
on pixel (0, 0), I noticed that the key "data" of data structure turned into this:
and the map looks like this:
4. And my final question is:
Could you explain why the index of this tile is 2086? Also, how exactly do the map tiles correspond to their indexes in RMMV?
Here is the problem I met when I tried to change the tile data in my .js script.
1. First, I'll show you the data structure of the map:
JSON:
{
"autoplayBgm": false,
"autoplayBgs": false,
"battleback1Name": "",
"battleback2Name": "",
"bgm": { "name": "", "pan": 0, "pitch": 100, "volume": 90 },
"bgs": { "name": "", "pan": 0, "pitch": 100, "volume": 90 },
"disableDashing": false,
"displayName": "小型测试地图",
"encounterList": [],
"encounterStep": 30,
"height": 3,
"note": "",
"parallaxLoopX": false,
"parallaxLoopY": false,
"parallaxName": "",
"parallaxShow": true,
"parallaxSx": 0,
"parallaxSy": 0,
"scrollType": 0,
"specifyBattleback": false,
"tilesetId": 1,
"width": 3,
"data": [
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0
]
}
2. Second, here is the tile group I used to draw this map:
A1: B: C:
3. When I put the first tile in A1
JSON:
"data": [
2086, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0
]
and the map looks like this:
4. And my final question is:
Could you explain why the index of this tile is 2086? Also, how exactly do the map tiles correspond to their indexes in RMMV?