Event Touch and Jumping Events

Thanks in advance!

Hi, I have a problem.

In my game the player sometimes needs to dodge monsters. If the player is occupying a tile and a monster walks from a neighboring tile to the player tile, making contact with the player (via "event touch"), a death event is triggered. But I've noticed something weird. If a monster jumps from a distant (or even adjacent) tile and lands on a tile occupied by the player, the monster and the player never make contact and the "event touch" event is never triggered. Not sure why, but this seems to be the way the vanilla engine is set up.

I'm requesting a plug-in that will allow monsters to make contact with the player by jumping onto the tile the player is occupying.

Thanks for your help!
Why not simply have the event that commands the jump check if the player is at that position?
the contact trigger system in rmmv is completely absurd, and will not allow you to do what you want.
the best ways it to made your own system with very simple math code.
http://jsfiddle.net/loktar/eYw5b/?utm_source=website&utm_medium=embed&utm_campaign=eYw5b
you can replace sprite, by pixi sprite and use _bound, its the best way.
unfortunately, there is no concrete solution to what you want to do.
Why not simply have the event that commands the jump check if the player is at that position?

Thanks! That sounds great. Do you have time to tell me how to do that? Unfortunately, I'm a total noob. 🙂
the contact trigger system in rmmv is completely absurd, and will not allow you to do what you want.
the best ways it to made your own system with very simple math code.
http://jsfiddle.net/loktar/eYw5b/?utm_source=website&utm_medium=embed&utm_campaign=eYw5b
you can replace sprite, by pixi sprite and use _bound, its the best way.
unfortunately, there is no concrete solution to what you want to do.


Thanks for the response! I don't know the first thing about coding so your post is over my head...
That sounds great. Do you have time to tell me how to do that? Unfortunately, I'm a total noob. 🙂
i rewrite my code for my own project, but will not work with other project sorry.
Control variable commands on four variables to calculate the jump target coordinates XY and player XY and then conditional branches to compared if they are identical.
Control variable commands on four variables to calculate the jump target coordinates XY and player XY and then conditional branches to compared if they are identical.


Thanks, let me see if I can make it happen!

EDIT: This works for the jumping issue. Not sure how to combine this with a simple "event touch" trigger because the monster never occupies the same tile as the player apart from the jump.

In other words, with the event set to parallel, the monster only occupies the same tile as the player when the monster jumps onto that tile. Can anyone help me combine this with an "event touch" trigger?

EDIT 2

Got this working, just needed to tick the "through" box for the event, not perfect but it works fine.

Original thread: https://forums.rpgmakerweb.com/threads/event-touch-and-jumping-events.90358/