I am making a puzzle based escape game in rpg maker MZ, I have characters in my game, and I want the ability to be able to switch between the two, even if the characters are in different sides of the map.
When you switch characters, the character you were playing would stay in place. And you can talk to them to merge back together.
Does anyone know of a plugin like that?
I don't think there is a plugin for that.
But you can easily do this with events.
You just need to work with their positions and images.
And for these two you have event commands for that.
What Eli said is the way to go (and if you do some Googling for switch party or things like that, you'll probably find threads with more in-depth instructions).
But basically you'll have an event that has pages to be blank, first character or second character, depending on, say, the value of a variable.
You'll use game variables to store X and Y coordinates for both characters. When the player triggers the change, you'll store their current X and Y, transfer them to the other X/Y, transfer your event to the player's old X/Y, set the variable to show the correct page on the event, then change your actor image to the other character.
Are you using MV or MZ? You posted in the MZ forum but your profile says you use MV. MV can make this even a bit slicker with Yanfly's Button Common Events, I'm not sure if there's an equivalent for MZ.