How I can control my hero during a loop?

Hi to everybody,
Someone can help me to understand how to move my npg during a loop?
The situation is that one on the attached "rpg.png"
In that case the guard turn in clockwise. The goal should be not be catched from the guard in the while our hero pass around him.
For example as you can see on the picture there is an event just below the guard.

- So I create an event with trigger event touch when is below the character.
- Loop
- Conditional branch
- If the event(Guard) turn down
- Game over
- repeat

When I touch the event my hero-png movement are blocked untill the end of the process and I can not go away to prevent the game over.

Easy to fix. Infact I just add the option "If not" on the conditional branch and add there "break loop" like this:

- Loop
- Conditional branch
- If the event(Guard) turn down
- Game over
- If not -> Break loop
- repeat

Now my character is able to move. But here is the problem...If I decide to activate the event when the guard don't look down, at the moment he turn down he will not catch me. This because is supposed that the event doesn't work constantly. But work only in case i touch the event when the guard look down.

Who never play to one of the pokemon game for Game Boy? My intention is to create a situation like the pokemon trainer, when they turn around and you are able to skip them, or wait untill they look at you and stop you.

I can not understand how can make work this two conditions at the same time. An help should be super appreciated.
Sorry for my english.
Regards
Luca
You need to mention if you are using a script or not.
No script...If there is a script that can solve this problem...let me know about it please 🙂
You don't need to have a loop, loops are for dialogue trees that you don't want to end just because you choose something. What you want to do is remove the loop and break loop and make the event a parallel process. Parallel process is essentially an autorun that you can move around with.
Ok...I was thinking too that the loop wasn't the solution...then I try to do it with the parallel process, actually I have to learn more about it if you have some tips more is nice. I just noticed that work like the autorun because start in automatic as soon i start to play. I guess I have to work with the switches to make it work
Autorun and Parallel Process are things that it's better to experiment with than have someone explain how it works. I did in five minutes through experimentation what one person spent an hour trying to explain to me. Just play around with it and you'll understand it.
You can have a parallel process event that checks if the guard had turned down and then checks the player's map coordinates and stores them in variables. Those variables can then be checked in a conditional branch, and if they match what you need, then game over.
Actually I found a solution right now YEEEEAH!!!...after several experimentS with variables, conditional branch and parellel process...I was really close to fix it but at the end not because I didn't understand how to make a variable that operate on the distance (from event or npg) or the coordinate of the map..........ANYWAY! FINALLY I GOT THE MOST EASY GENIAL SOLUTION! and it was.....

- Download the plug in "eventchaseplayer"
- Create a common event
- Put the common event inside the plug in

Work 100% Easy 1000% with the page of the event totally empty. Everything will be done by a custom movement -> script of the plug in edited with common event 😉
Thanks anyway guys...I learned a lot about variables that are really interesting. Just for curiosity...someone know how to set the variable distance from event or npg?

Original thread: https://forums.rpgmakerweb.com/threads/how-i-can-control-my-hero-during-a-loop.79529/