How to make enemies popout of nowhere?

Hello everyone and I want enemies to popout of nowhere in some point when i walk in the map
this is what i want to happend also:
1.Make enemies approach me after they popout
2.show an animation
3. make the animation appear only once (after the enemy popsout of nowhere)
This is what I wrote in the enemy NPC:
Screenshot_9.png
This is what i wrote in the event trigger switch:
Screenshot_10.png
Thanks to anyone who can help 🙂
Ugh, posted before I realised you were using VX Ace.. sorry 🙁
a lot of mistakes here - the worst of it is to use a parallel process, because that is the wrong way.

On the bandit event, delete all existing content.
Change the setting for autonomous movement to "approach"

Now, if you want something to happen when the event reaches the player, make the trigger "event touch" and place that something into the content (for example battle processing)
If you want nothing to happen, change the trigger to "action button"

On the triggering event, remove the transparent on command and place the animation command targeted on the bandit event there BEFORE the control switch command (with the switch off, the event will still be invisible)
I also did this via the following method:

Step 1: Create an invisible event where the enemy will appear. Put nothing in the event. No sprite, no commands, nothing. However, name the event to make step 2 easier.
Step 2: In the event which controls the pop out enemy, I did this:
Set Move Route -> set it to be on the invisible event -> Change Graphic (change it to the new graphic it should be using).
Set Move Route -> set it to be on the invisible event- > Whatever move route it should have to show it popped out and is now doing whatever it should do.
Note both Set Move Routes can (and should be) be one move route command.

Step 3: Put all remaining relevant events related to the pop-out event in the controlling event. Just be sure to do a set move route -> Through ON, Transparent ON on the enemy when you are done!
@
a lot of mistakes here - the worst of it is to use a parallel process, because that is the wrong way.

On the bandit event, delete all existing content.
Change the setting for autonomous movement to "approach"

Now, if you want something to happen when the event reaches the player, make the trigger "event touch" and place that something into the content (for example battle processing)
If you want nothing to happen, change the trigger to "action button"

On the triggering event, remove the transparent on command and place the animation command targeted on the bandit event there BEFORE the control switch command (with the switch off, the event will still be invisible)
@Andar Thank you so much for the help! it works now 🙂
but there is one minor problem with the bandits, when i show up in the map
the bandits immidietly start move towards me but i want them to do that only after i finish triggering the trigger event, how to i do that? if you can tell me
the middle square(red) is the trigger event, the squares at both sides(green) are the bandit events
I also did this via the following method:

Step 1: Create an invisible event where the enemy will appear. Put nothing in the event. No sprite, no commands, nothing. However, name the event to make step 2 easier.
Step 2: In the event which controls the pop out enemy, I did this:
Set Move Route -> set it to be on the invisible event -> Change Graphic (change it to the new graphic it should be using).
Set Move Route -> set it to be on the invisible event- > Whatever move route it should have to show it popped out and is now doing whatever it should do.
Note both Set Move Routes can (and should be) be one move route command.

Step 3: Put all remaining relevant events related to the pop-out event in the controlling event. Just be sure to do a set move route -> Through ON, Transparent ON on the enemy when you are done!
Thank you for your method too 🙂 i will save it and may try it in the future

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-enemies-popout-of-nowhere.81980/