Event Touch Doesn't Work on Diagonal Movement

Hi, RPG Maker MZ user here.

I've noticed that the Event Touch trigger doesn't work when the event is using diagonal movement in its movement route. The event just freezes in place until the player moves out of the way. If you corner the enemy in just the right way and then face it, it'll turn around and initiate the event, but yeah, not ideal.

For reference, the event priority is set to Same as Characters. And I have no problem getting events to trigger when they move next to the player in a left/right/up/down direction.

This issue happens whether I'm using the Yami_8DirEx plugin, VisuStella's Events & Movement Core plugin with eight-directional movement turned on, and both plugins at the same time. I still have these issues anyway.

Is there some way to make Event Touch work with diagonal movement?

Thanks!
Does this work?
Thread 'DBS Diagonal Move (8 directions) - RPG Maker MV, MZ' https://forums.rpgmakerweb.com/inde...nal-move-8-directions-rpg-maker-mv-mz.141123/
Hi there. Thanks for responding.

Unfortunately, I tried that plugin just now, and it does the same thing. A diagonally moving event stops when it runs into the player, but it doesn't initiate the event's commands. It doesn't freeze the game or anything; the event just skips that part of the route.
Then unfortunately the only way to trigger it is to either
1. Edit the plugin so that if an event is moving diagonally (odd numbered directions), check if the player is there and if yes, call the event trigger.

2. Have a parallel common event checking every 10 frames or so if the player is currently on a tile occupied by an event, trigger what you want to happen.
I'm sorry, could you point me in the right direction for option #2? Editing plugins is beyond my talents, and I've wasted hours trying other workarounds with Events & Movements Core ("Crash Move To" custom movement route commands, Activation Box notetags, etc.).

I'm guessing option #2 has something to do with pulling x/y coordinates, a feature I haven’t really used yet. Would that work even though the events are "Same as Characters" priority? And would having too many events with constant checks (for example, 5 on-screen enemy events on the same map) cause game slowdown?
Anyone Correct me if I'm wrong
but I think they would need a pixel movement collision plugin to detect a collision from diagonal movement given the grid based nature of maps and events by default

The directional movement plugin just effects how movement works but collision is still detected from 4 sides and diagonal collision will correct it to either horizontal or vertical upon collision
I'm sorry, could you point me in the right direction for option #2? Editing plugins is beyond my talents, and I've wasted hours trying other workarounds with Events & Movements Core ("Crash Move To" custom movement route commands, Activation Box notetags, etc.).

I'm guessing option #2 has something to do with pulling x/y coordinates, a feature I haven’t really used yet. Would that work even though the events are "Same as Characters" priority? And would having too many events with constant checks (for example, 5 on-screen enemy events on the same map) cause game slowdown?
This will make it so every 10 frames (6 times a second) check if the player is within 50 pixels of an event with the tag <enemy> in its notebox. If yes, trigger that event's event page.

JavaScript:
var enemyEvents = $gameMap.events().filter(function(event){return $dataMap.events[event._eventId].meta["enemy"] && !event._erased;});
enemyEvents.forEach(function(enemy){
hitDist = Math.abs($gameMap.event(enemy._eventId).screenX() - $gamePlayer.screenX()) +
          Math.abs($gameMap.event(enemy._eventId).screenY() - $gamePlayer.screenY());
if (hitDist <= 50) {  // in range?
   enemy.start();
  }
});
This will make it so every 10 frames (6 times a second) check if the player is within 50 pixels of an event with the tag <enemy> in its notebox. If yes, trigger that event's event page.

JavaScript:
var enemyEvents = $gameMap.events().filter(function(event){return $dataMap.events[event._eventId].meta["enemy"] && !event._erased;});
enemyEvents.forEach(function(enemy){
hitDist = Math.abs($gameMap.event(enemy._eventId).screenX() - $gamePlayer.screenX()) +
          Math.abs($gameMap.event(enemy._eventId).screenY() - $gamePlayer.screenY());
if (hitDist <= 50) {  // in range?
   enemy.start();
  }
});

In every test except for one, this worked perfectly. There was one time the enemy got held up on its route by the player's sprite, but I'm guessing they were in diagonally adjacent squares and thus their distance exceeded 50 px due to diagonal math stuff, haha.

TL;DR, this is amazing compared with what I had before, and will more than suffice for my purposes. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/event-touch-doesnt-work-on-diagonal-movement.162671/