Looking for the most efficient way to move multiple events at once in a choreographed manner. I have a scene where five NPCs will need to move in a very choreographed manner. For example:
NPC 1 will move 10 tiles to the right, then 5 tiles to up, then 5 tiles right.
NPC 2 will move 5 tiles down, wait 60 frames, then move 10 tiles to the right.
NPC 3-6 have other similar move routes.
The specific movement routes change based on a variable as well and we have 20 different movement route sets. My initial plan was to use a single parallel event on the map that controlled all the movements and different pages for each different set of movements depending on the variable. I ran into trouble when it came to having to make certain NPCs wait a second or two until their turn to move came as any wait command or "wait until movement completion" just made everyone else wait too. So my next plan was to have 5 parallel events on the map with each one only controlling the movements of each corresponding individual NPC event. This seemed to work but occasionally lags.
This may just be a case of me needing to rework my events to make them run more effecienty but before I really dive into it, I wanted to ask what the most efficient method of doing this kind of thing is so that I can set it up that way and then refine it from there.
I'm also open to plugins as well.
NPC 1 will move 10 tiles to the right, then 5 tiles to up, then 5 tiles right.
NPC 2 will move 5 tiles down, wait 60 frames, then move 10 tiles to the right.
NPC 3-6 have other similar move routes.
The specific movement routes change based on a variable as well and we have 20 different movement route sets. My initial plan was to use a single parallel event on the map that controlled all the movements and different pages for each different set of movements depending on the variable. I ran into trouble when it came to having to make certain NPCs wait a second or two until their turn to move came as any wait command or "wait until movement completion" just made everyone else wait too. So my next plan was to have 5 parallel events on the map with each one only controlling the movements of each corresponding individual NPC event. This seemed to work but occasionally lags.
This may just be a case of me needing to rework my events to make them run more effecienty but before I really dive into it, I wanted to ask what the most efficient method of doing this kind of thing is so that I can set it up that way and then refine it from there.
I'm also open to plugins as well.