Switch main characters

Hi,

I'm making a game in which I need to switch who the main character of my party is depending on the scene. I tried adding and removing party members but that made my game lag quite badly.

Any support is appreciated.
Hello and welcome! Could you please read through this post and provide information accordingly? Normally it shouldn't lag at all, but you need to provide more information.

1750473462777.png
when adding/removing, unmark "initialize" if you have it marked.
see if that solves the problem.

if not, there may be a plugin malfunctioning there.
Could you give more info on the lag?

I mean swapping in and out Characters is a very simple function and shouldn't be lagging at all?

you using any plugins in relation the party members?
we need to see a complete screenshot of the event you're using for the switching, including its trigger and so on.

my first guess is that it is a badly designed parallel listening to keypress every frame and setting the actor order every frame no matter if pressed or not.
because that would explain the lag as well.

Original thread: https://forums.rpgmakerweb.com/threads/switch-main-characters.178445/