Help with on map encounters

Hello.

I'm using a plugin for letting the on map enemy sprite chase the player once he detects him within a few tiles.
If the player escapes from a battle and returns to the map, then the enemy sprite should wait some frames before chasing the player again. Meanwhile, the player should be able to move away from the enemy.

Any ideas how to achieve that?

Thank you in advance!
Hello @Teddy97!
I'm using a plugin for..."
Can you share us a link to that plugin please, so we can get a better grasp on what you wanna do?
Some pictures of what you set up, can save us some time too. 😉
I do this as follows:

For the battle event, first check can escape. In the if escape code, add wait (x) frames this event. Remember though that 60 frames is one second, so make sure to make it long enough that the player can actually react. I usually use 300 myself.
I do this as follows:

For the battle event, first check can escape. In the if escape code, add wait (x) frames this event. Remember though that 60 frames is one second, so make sure to make it long enough that the player can actually react. I usually use 300 myself.

But then the player has to wait as well till the event is finished before he can move.
But then the player has to wait as well till the event is finished before he can move.

If you start a move route as the last line of an event and then don't set "wait for completion", it'll give the player back control but still run the move route on the event.

I personally also make them go 50% transparent and set "through" to "true" so you can't run into them again, then disable those after the wait, something like so:

upload_2019-6-2_10-23-59.png
If you start a move route as the last line of an event and then don't set "wait for completion", it'll give the player back control but still run the move route on the event.

I personally also make them go 50% transparent and set "through" to "true" so you can't run into them again, then disable those after the wait, something like so:

View attachment 116722

Thank you, mate!
I thought I had to set "wait for completion".
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/help-with-on-map-encounters.109636/