Seamless Transferss w/ Followers?

Hello. I was making a few maps which have equal corridors and when the player reaches the end, it would transfer them to the next map, and then they would walk back and notice they are on a different map.


My problem is that the teleport pauses my character from walking + throws the follower on top of my main character. How can I make it to seem that a transfer didn't happen?


A seamless transition, transfer if you will?
Can only be done by plugin, and is a lot more complex that it might seem at the first moment:


The followers get placed on the main actor because the engine cannot know where to place them - they need to be in a position that is walkable and from a direction that is logically the entry point (which means nowhere in case of stairs).


Rather than wasting a lot of programming time on that part for little effect, the default engine just positions everyone on the designated entry tile.


To solve that, you need to have a way to designate "follower points" for the entry on each map - multiple times if a map has several entry points...


I'm moving this to plugin requests if you really want that, but don't get hopes up...


I've moved this thread to Plugin Request. Please be sure to post your threads in the correct forum next time. Thank you.



(oh - and the stop can only be reduced by a preload manager and careful map effects, because it is caused by loading times and to allow all map parallels to run first)
Hey!


Thank you for the quick answer, Andar. I didn't realize I'd need a plugin for this, though I apologize.


Also, I tried to use TDDP Preload Manager (the only one I can find at all) and the little pause remains, even with all of my plugins off. And my map has no parallel events but the transfer. 🙁


I hope someone can make a plugin for this. I'd be eternally grateful... and an idea for the follower point, could be a terrain tag? My transfers are pretty precise spotwise and I only need to do this in one map and only once.
Oh I think it's possible with some creative $gamePlayer.setPosition and double maps. Perhaps I'm barking up the wrong tree here, but this is how I just came up with a seamless transition for a quick example. I've got the time.


setPosition.gif


Spoiler
Screen Shot 2017-01-30 at 4.21.41 PM.png


This ^ is an example of transferring your party 18 spaces to the right. I post an image to illustrate quickly that it's an event script on Player Touch. I can't post any copy/paste plug and play script without of course knowing your map situation.


Screen Shot 2017-01-30 at 4.19.36 PM.png



I could be way wrong here too, idk. I often don't know which way is up.
Hey mogwai ! Thank you for your reply. My initial plan was to have 2 maps, imagine with your example, one with the piano and other without. But I can adapt to make both areas in one single map, it's a cave/dungeon after all and there's no events in it besides some parallel light events that I'll add in later.


I tried to make a small map to test the script you wrote but I don't think that my characters like me that much today. I wrote everything like you did, only replaced 18 by 19 since the spots in my map were 19 tiles apart. The main character teleports perfectly and smooth but the follower... he stays in his spot and after I walk up and down in the new area, he walks towards me with every step I take... :c

Spoiler
oppsow.png



The little dude walking back to me on second area through walls!


EDIT: GIFed it.


0d59b24a839e719a0a76ae9f66cfe17b.gif
I thought this would work smoother. I'm stumped that it isn't. Let me check.


$gamePlayer.setPosition(
$gamePlayer._x + 18, // < I know you edited this 18
$gamePlayer._y
);
var pe = $gamePlayer.followers()._data.length;
for(var i = 0; i < pe; i++){
$gamePlayer.followers()._data.setPosition(
$gamePlayer.followers()._data._x + 18, // < did you edit this 18 too?
$gamePlayer.followers()._data._y
);
}
$gamePlayer.center($gamePlayer._x, $gamePlayer._y);
// My only other guess is there is a mispelling.
// I should have posted copyable text like this in the first place.


Make sure it's both + or both - according to your map. You also don't need to repeat the event in the new location. I can only speculate without seeing your full map. Do you perchance have any plugins that reference Game_Followers? I'm also predicting you typed something like .x instead of ._x, but I can't know without seeing how you typed it. I'm a big boob. I should have posted script.
Hey mogwai ! Thank you for your help. Within this spoiler is all the dumb stuff I wrote. I did indeed misspell length with lenght. Thank you so much for your help. I'm ashamed. >.<'

Spoiler
Hey mogwai ! I don't know what I did wrong, but when I wrote it didn't work, even though every time I look at it I can't see any spelling errors or syntax mistakes Maybe I'm just blind or very stupid. Funny enough, I copy pasted your script and suddenly it works. Thank you so much!



 





What I wrote from looking at your screenie (ignore the minuses, I added it at the last moment to try something out)



$gamePlayer.setPosition(
$gamePlayer._x + -18,
$gamePlayer._y
);
var pe = $gamePlayer.followers()._data.lenght;
for(var i = 0; i < pe; i++){
$gamePlayer.followers()._data.setPosition(
$gamePlayer.followers()._data._x + -18,
$gamePlayer.followers()._data._y
);
}
$gamePlayer.center($gamePlayer._x, $gamePlayer._y);






What you posted 8h ago (sorry, locales 🙁 )



$gamePlayer.setPosition(
$gamePlayer._x + 18,
$gamePlayer._y
);
var pe = $gamePlayer.followers()._data.length;
for(var i = 0; i < pe; i++){
$gamePlayer.followers()._data.setPosition(
$gamePlayer.followers()._data._x + 18,
$gamePlayer.followers()._data._y
);
}
$gamePlayer.center($gamePlayer._x, $gamePlayer._y);










Previous post I had written before it worked



 



Hey


mogwai ! I'm sorry, I should have posted the map as well right away. I mean, I created this map to try the script out first. It's 40x40. I tried to do it with all plugins on and off (Moghunter's Pixi Filter, Yanfly's ScreenResolution, Masked's Zoom, Shaz's ChangeTileSize, Yami's SkipTitle). I had FixedBattleMember from Kadowaka but I removed it. It's alright for not pasting, like you said, you didn't know my map yet. Though, I think I wrote it properly? I pasted a screenie. Also my engine is at 1.3 if it's any help.



 





cac5192f91cb2e7ee6dd5a5c79a5de11.png



I did edit both 18s, I am not a JS programmer but I know the some basics of logic and I can tell that the first piece of code sets the position of the player and the the second creates a variable to hold the current x and y positions then shift the follower. But I think that in my game, that line of code is getting ignored? Just a wild guess more or less.


7791b2736645b606203acf4179bf1082.png



It works best when the event is on the left tile of the corridor, but still, the thing is that the follower stays in his spot and then walks to me 🙁





Glub, moved the map closer one tile so that I could make 19 into 18, thinking that it could do something but it didn't change.
I'm glad I was able to help. I'm glad you went with my simpler method, even though technically this is not a plugin.


I was so sure somebody was going to have to write something a plugin to call a secondary $gameMap or whatever into memory and I don't understand the preload concept myself.

Original thread: https://forums.rpgmakerweb.com/threads/seamless-transferss-w-followers.74315/