Released: Here
I searched and asked online for days but no one had a solution that can really make seamless maps. Merging maps into one or creating common parts for each map are solutions but not good enough. Therefore I am working on my own plugin for this feature.
You can see there are four different maps. And I use three different tilesets to draw them. The rightside map uses the same tileset as the main map.
Also maps can be connected at any position.
With this plugin, you can make a real "large map" in MV by connecting many small maps.
The connected map will be dynamically loaded and rendered when it needs to show.
The plugin is not finished yet, so DO NOT use in your project. But you can experience it and tell me how you think. I will try to improve if your idea is good.
Please notice that I am game maker not a plugin maker. This plugin is for my game, once I finishing it and starting to make my game, I may not update this plugin any more. Unless it has a big bug or some serious problems.
Since I am chinese, comments and notes of this plugin are all chinese. I will write an English version below.
Sorry for explaining any complex thing unclearly cuz my English is not good enough.
Another notice, the very first time to render the second map may cause a little lag. And that's it, seems not lag any more when rendering any new maps after that.
Use mouse to move, so that you can see the actor not goes through impassable tiles
Upload time: 2020/03/19 14:21 20:40 03/20 10:54
Released: Here
I searched and asked online for days but no one had a solution that can really make seamless maps. Merging maps into one or creating common parts for each map are solutions but not good enough. Therefore I am working on my own plugin for this feature.
You can see there are four different maps. And I use three different tilesets to draw them. The rightside map uses the same tileset as the main map.
Also maps can be connected at any position.
The connected map will be dynamically loaded and rendered when it needs to show.
The plugin is not finished yet, so DO NOT use in your project. But you can experience it and tell me how you think. I will try to improve if your idea is good.
Please notice that I am game maker not a plugin maker. This plugin is for my game, once I finishing it and starting to make my game, I may not update this plugin any more. Unless it has a big bug or some serious problems.
Since I am chinese, comments and notes of this plugin are all chinese. I will write an English version below.
Sorry for explaining any complex thing unclearly cuz my English is not good enough.
Two JS files, C47_SeamlessMap.js and pixi-tilemap2.js
C47_SeamlessMap.js is depending on pixi-tilemap2.js so put pixi-tilemap2.js on the top of C47_SeamlessMap.js
Parameters of C47_SeamlessMap:
Do clear old tileset: used to clear old tilemap when rendering, usually not needed, but MV keeps clearing and rendering, so I make this option in case you need it
Min check distance: the distance to check whether the second map is needed to show. Its value is the number of TILEs. The default value 0.5 means check if map2 is needed when there only has "half tile" width left to the border of current map, which means if the actor keeps on moving half tile, you will see the border of map in the screen. No need to change.
Note format of map:
<cmap: DIR1 MAP_ID X Y DIR2 MAP_ID X Y DIR3...>
DIR: direction, l d r u for left down right up, means where to connect next map
MAP_ID: id of the next map to be connected in the given direction
X and Y: the coordinate to be connected to the next map. See example below if don't understand.
Simply draw two default maps, then write notes as below.
<cmap:u 2 7 0> for map1
<cmap:d 1 6 12> for map2
Then map2 will be on the top of map1 and (7,0) of map1 will be connected to (6,12) of map2
By the way, only the closest map to the actor will be showed. If both maps have same distance, it will be showed in the order left down right up.
C47_SeamlessMap.js is depending on pixi-tilemap2.js so put pixi-tilemap2.js on the top of C47_SeamlessMap.js
Parameters of C47_SeamlessMap:
Do clear old tileset: used to clear old tilemap when rendering, usually not needed, but MV keeps clearing and rendering, so I make this option in case you need it
Min check distance: the distance to check whether the second map is needed to show. Its value is the number of TILEs. The default value 0.5 means check if map2 is needed when there only has "half tile" width left to the border of current map, which means if the actor keeps on moving half tile, you will see the border of map in the screen. No need to change.
Note format of map:
<cmap: DIR1 MAP_ID X Y DIR2 MAP_ID X Y DIR3...>
DIR: direction, l d r u for left down right up, means where to connect next map
MAP_ID: id of the next map to be connected in the given direction
X and Y: the coordinate to be connected to the next map. See example below if don't understand.
Simply draw two default maps, then write notes as below.
<cmap:u 2 7 0> for map1
<cmap:d 1 6 12> for map2
Then map2 will be on the top of map1 and (7,0) of map1 will be connected to (6,12) of map2
By the way, only the closest map to the actor will be showed. If both maps have same distance, it will be showed in the order left down right up.
Also counted in the title
- 【X】actor cannot move to map2
- 【X】events on map2 cannot be showed
- 【X】check if it's passable when the actor moving from map1 to map2
- 【X】ESC closing menu will crash
- 【X】transfer to new map and show its connected map will crash
- 【X】should switch maps when actor moving into map2
- 【Give up】haven't considered any conflicts with other map plugins
Use mouse to move, so that you can see the actor not goes through impassable tiles
Upload time: 2020/
Released: Here