So I wanted to stitch maps together and do smoother transitions to approximate the chunk loading from open world type games. I didn't find anyone who ever presented a solution although I found a couple of times where someone had asked a similar question. Obviously you need to have the transfer not have a fade so started there. But the followers bunch up when you do a transfer. Didn't see an obvious way to change it through the event system so rooted around in the .js files and cobbled this together:
switch ($gamePlayer._direction) {
case 2:
$gamePlayer.followers()._data[0].locate($gamePlayer.x, $gamePlayer.y-1);
$gamePlayer.followers()._data[1].locate($gamePlayer.x, $gamePlayer.y-2);
$gamePlayer.followers()._data[2].locate($gamePlayer.x, $gamePlayer.y-3);
break;
case 4:
$gamePlayer.followers()._data[0].locate($gamePlayer.x+1, $gamePlayer.y);
$gamePlayer.followers()._data[1].locate($gamePlayer.x+2, $gamePlayer.y);
$gamePlayer.followers()._data[2].locate($gamePlayer.x+3, $gamePlayer.y);
break;
case 6:
$gamePlayer.followers()._data[0].locate($gamePlayer.x-1, $gamePlayer.y);
$gamePlayer.followers()._data[1].locate($gamePlayer.x-2, $gamePlayer.y);
$gamePlayer.followers()._data[2].locate($gamePlayer.x-3, $gamePlayer.y);
break;
case 8:
$gamePlayer.followers()._data[0].locate($gamePlayer.x, $gamePlayer.y+1);
$gamePlayer.followers()._data[1].locate($gamePlayer.x, $gamePlayer.y+2);
$gamePlayer.followers()._data[2].locate($gamePlayer.x, $gamePlayer.y+3);
break;
}
I put it in a script call from an event like this:
As long as you set your maps up so you have overlapping portions like this so you have room to place the player and the string of followers and set your transfers to space out properly:
Then it works just fine. I set it up as an autorun event so it triggers as soon as you enter a map and not sure if the Erase Event is truly needed but did it just in case so I'm certain it only runs once. As a bonus when you first start the followers will be all lined up instead of stacked on top of the player 🙂
I didn't feel like trying to dig into writing a full-blown plugin so this doesn't work in MV as the script window won't take that much text and I'm pretty much doing everything in MZ anyhow. If anyone feels they want to do a plugin using this feel free.
switch ($gamePlayer._direction) {
case 2:
$gamePlayer.followers()._data[0].locate($gamePlayer.x, $gamePlayer.y-1);
$gamePlayer.followers()._data[1].locate($gamePlayer.x, $gamePlayer.y-2);
$gamePlayer.followers()._data[2].locate($gamePlayer.x, $gamePlayer.y-3);
break;
case 4:
$gamePlayer.followers()._data[0].locate($gamePlayer.x+1, $gamePlayer.y);
$gamePlayer.followers()._data[1].locate($gamePlayer.x+2, $gamePlayer.y);
$gamePlayer.followers()._data[2].locate($gamePlayer.x+3, $gamePlayer.y);
break;
case 6:
$gamePlayer.followers()._data[0].locate($gamePlayer.x-1, $gamePlayer.y);
$gamePlayer.followers()._data[1].locate($gamePlayer.x-2, $gamePlayer.y);
$gamePlayer.followers()._data[2].locate($gamePlayer.x-3, $gamePlayer.y);
break;
case 8:
$gamePlayer.followers()._data[0].locate($gamePlayer.x, $gamePlayer.y+1);
$gamePlayer.followers()._data[1].locate($gamePlayer.x, $gamePlayer.y+2);
$gamePlayer.followers()._data[2].locate($gamePlayer.x, $gamePlayer.y+3);
break;
}
I put it in a script call from an event like this:
As long as you set your maps up so you have overlapping portions like this so you have room to place the player and the string of followers and set your transfers to space out properly:
Then it works just fine. I set it up as an autorun event so it triggers as soon as you enter a map and not sure if the Erase Event is truly needed but did it just in case so I'm certain it only runs once. As a bonus when you first start the followers will be all lined up instead of stacked on top of the player 🙂