move to and away from player character

I'm pretty new at this, but I had this idea that seemed very simple in my mind only to end up wasting nearly five hours trying to get it to work.


What I wanted to accomplish was to have 6 to 12 npc characters follow and surround the player character, stand there looking at him for a few moments, then turn around and leave.


At this point I tried pretty much everything I could think of and I almost feel like giving up.


Getting the npc's to surround the player is easy and I know there are a few ways of doing this. Getting them to turn around and leave is something I've been unable to figure out.


Everything I've tried results with the player surrounded, no movement options and npc's that stubbornly refuse to turn around and leave.


Any suggestions?
Control all the npcs from a single event and use move routes with only the last one having wait until finished checked.
Could you elaborate a bit? As I've said I'm somewhat of a newbie.


What's the best way to activate the event, as the player's position could be anywhere on the map? The event now starts with a switch that is activated in another event (npc that moves aroud the map, stopping here and there)


How do I end the 'go towards player' command? Seriously, how do I get them to move to the next scripted movement action?


And how do I make them move more or less simultaneously?


Thanks.
If you don't want the player to move while the npcs are surrounding him, then check, on the last move route only, wait for completion.

Spoiler












Also, I used a script call to trigger the move routes, you can use the way you wanted just as well.  For the nested conditional branches on page 2, you need to do that for all the npcs you want to surround the player.
Could you elaborate a bit? As I've said I'm somewhat of a newbie.


What's the best way to activate the event, as the player's position could be anywhere on the map? The event now starts with a switch that is activated in another event (npc that moves aroud the map, stopping here and there)


How do I end the 'go towards player' command? Seriously, how do I get them to move to the next scripted movement action?


And how do I make them move more or less simultaneously?


Thanks.

im more newbie than you, but name each event something unique, make them move at the same time by unclicking Wait for Completion, make sure you stack the movements one by one , and to end the go towards player, prob just add another command like jump i guess.... hope this helps lol

Original thread: https://forums.rpgmakerweb.com/threads/move-to-and-away-from-player-character.67675/