RMMZ How can I make a seamless transition post fight?

Hello, so my problem is that I'm trying to transfer the player to another map after ending a fight, so I tried adding a "transfer player" event right after the battle as a victory condition and while that does teleport the player, for a second after the fight ends, you can see the player's position right before the fight before the transfer actually happens.

So, is there a way to make the transition more seamless? Something like, making the transfer happen during the fight so there's no weird transitioning?
I'm not sure if putting before the battle would work, but you can always experiment and try it.

If that doesn't work, the alternative would be to use a show picture (with a black picture that fills the screen) just before the fight starts.
If the player wins, transfer then remove the picture.
If they lose, just remove the picture without the transfer.

You can also use the move picture command to change the image opacity over time so it can fade in/out.
Essentially as @TheAM-Dol describes. I also have a “battle -> cutscene -> resume battle” kind of situation, but exiting the battle is mostly a matter of fading the screen to black so that the player will not see the map before the transfer. However… if you need the victory and victory aftermath to resolve normally before the transfer, I suspect you’ll need a plugin to do things smoothly.

e.g.


fading the screen to black
How could I forget that there is a fade screen to black command :LZSlol:
I almost never use it though. I'm not sure if it has been improved in MZ, but in MV you can't change the duration of the fade out. So I always use a show picture/move picture command to have better granularity over the fade controls.
I'd suggest Tint Screen instead. The map scene uses the Fade system (Scene_Map#start), but it expects it to be directed via Transfer Player; otherwise, returning from the battle scene initiates a default fade-in before the interpreter begins processing.

I found an old thread where I seem to have done some experimenting, in case that helps~
  1. Use a Script command instead of Transfer Player - this avoids the problem entirely:
    var mapId = 2; var x = 3; var y = 4; var d = 0; // 0 = Retain, 2 = Down, 4 = Left, 6 = Right, 8 = Up var fadeType = 0; // 0 = Black, 1 = White, 2 = None $gamePlayer.reserveTransfer(mapId, x, y, d, fadeType);

  2. Alternatively, use event commands. For random encounters, you can just use an Autorun common event, enabled by turning on its switch in the troop event. This works because by default Autorun/Parallel events only run on the map. (Remember to turn the switch off again at the end of the common event otherwise it will keep repeating.)

    Example:
    • Troop event:

      ◆Tint Screen:(-255,-255,-255,0), 60 frames (Wait) ◆Control Switches:#0010 Battle Transfer = ON ◆Abort Battle
    • Autorun common event:

      ◆Transfer Player:Another Map (7,4) (Fade: None) ◆Tint Screen:(0,0,0,0), 60 frames (Wait) ◆Control Switches:#0010 Battle Transfer = OFF
I've used Tint Screen here, because that's what worked for me. I tried with Fadeout/Fadein Screen but for some reason it didn't fade in again properly (everything else worked). 😴
Oh the idea of doing tint screen didn't even cross my mind at all, ill definitely try that out, thanks a lot for the suggestions!
I'd suggest Tint Screen instead. The map scene uses the Fade system (Scene_Map#start), but it expects it to be directed via Transfer Player; otherwise, returning from the battle scene initiates a default fade-in before the interpreter begins processing.
Ah, this is very interesting!

I've used Tint Screen here, because that's what worked for me. I tried with Fadeout/Fadein Screen but for some reason it didn't fade in again properly (everything else worked). 😴
So I just went back and checked an event I created quite a while ago (which I am embarrassed to say I can't test right now because in the middle of a sloppily executed tile set swap...) and interestingly it worked with fadeout.

Troop event:
<Some stuff happening>
◆Fadeout Screen
◆Control Switches:#0035 EDL_N戦闘Pt1終了 = ON
◆Abort Battle
<Some party member swapping happening>

Common event:
◆Transfer Player:SJORGE_QUARTERS (10,7) (Fade: None)
◆Fadein Screen
◆Control Switches:#0035 EDL_N戦闘Pt1終了 = OFF

Curiously though, I had set the trigger of the common event to parallel, and I have a "battle parallel" plugin. So it might be that in actuality what happens is pretty similar as with the script call you proposed. Will have to go back and rework the event after tile set swap has finished...
@werzaque - yea, I'd guess the parallel battle event plugin is what's helping in your case.

Original thread: https://forums.rpgmakerweb.com/threads/rmmz-how-can-i-make-a-seamless-transition-post-fight.170440/