Help me with Jumping events?

Hi folks, long time no post!

I'm finally getting back into RPGMV and I've got a question.

I've got these onscreen enemies (Events) who I would prefer to hop around the screen one space at a time using the Jump command, just based on how it looks. When I choose the "Move" Options in their custom Movement Route, everything works fine, including their collision mechanics with solid objects like walls, water, other events, and the player.

However, if I instead opt for them to "Jump", They just kind of jump straight through barriers and other events. What's the best way to make sure they can't jump if the intended area is blocked? The event priority is currently set to Same As Characters.

Thanks for reading!
this require facing direction and if the next tile = free or not (or blocked)
depending if it's the same as character, below or above.

below/above and jumping can just happen, same as character mostly not.
but if it does, than it might require a snippet to avoid this.

there are some plugins that check facing direction is free or not, if it's free,
it would be valid, if it's taken, it takes another direction which is valid.
You'd use a plugin like Yanfly Smart Jump or Hakuen Studio Jump. Or code in a conditional canPass check yourself before using the jump command
Here is an example of a scripted random jump:
1734235475837.png



this.turnRandom();if(this.canPass(this._x,this._y,this._direction))this.jump($gameMap.roundXWithDirection(this._x,this._direction)-this._x,$gameMap.roundYWithDirection(this._y,this._direction)-this._y);

You can remove the turn random part if it is not wanted.
The logic behind this is quite simple,
1. use if the event can move in its current direction
2. jump forward 1 tiles if the condition is true


This is another example, which is more complicated.
It uses another invisible event as a path finder, and let your real event jump on top of the path finder event.
Spoiler
1734235897526.png

Original thread: https://forums.rpgmakerweb.com/threads/help-me-with-jumping-events.173907/