Events can't have good pathfinding with Diagonal movement?

I've tried multiple diagonal movement plugins and found ones that work for events. The problem is they only move diagonal when set with a .moveTowardPlayer script. Whenever a script with good Pathfinding is used it always has .moveStraight in the script, but then the event is unable to move diagonal.

Ive been fighting to get a good pathfinding plugin with Diagonal movement. My event is suppose to be chasing the player without getting stuck on walls or staring at the player through walls.

A good example is this simple script which is perfect, however doesn't include diagonal movement.



Is there anything I can do about this or what ideas I can try to achieve it? After researching continuously for hours I don't have much to work with. I'm not good with JS but I'm always learning as I go. Thank you.
pathfinding is pure mathematics, and if the formulae used do not take diagonal movement into account, then they will not move diagonally.
and since there is no diagonal movement by default most of the existing pathfinding scripts do not take diagonal moves into them.

your best chance would be someone who wrote both diagonal movement and pathfinding scripts, searching for pathfinding alone is very unlikely to find one that includes diagonal moves.
This is for MV and says it has 8-directional support. I don't know if it'll work in MZ but you can try

Edit: I can confirm it works in MV, if you get the Cannot Read Property "Dir8" of undefined use the fix below:
To fix the Dir8 issue, change line 174 of the script from !Maki.Params.Dir8 to !Maki.AM.Dir8.

Also, as a sidenote, beware of clicking on things that have no route (like clicking in a building, if you hold down the mouse). The script locks up until you can manage to click somewhere taht you can actually get to.
pathfinding is pure mathematics, and if the formulae used do not take diagonal movement into account, then they will not move diagonally.
and since there is no diagonal movement by default most of the existing pathfinding scripts do not take diagonal moves into them.

your best chance would be someone who wrote both diagonal movement and pathfinding scripts, searching for pathfinding alone is very unlikely to find one that includes diagonal moves.
Gotcha, thank you for explaining that as I wasn't sure where the problem was. I'll try to search more for diagonal pathfinding scripts.
Aw
This is for MV and says it has 8-directional support. I don't know if it'll work in MZ but you can try

Edit: I can confirm it works in MV, if you get the Cannot Read Property "Dir8" of undefined use the fix below:
Thank you! I'll try this once I get home. Does this plugin work for diagonal movement?
Aw

Thank you! I'll try this once I get home. Does this plugin work for diagonal movement?
It has its own diagonal movement script built in
It has its own diagonal movement script built in
Ah finally got to try it out, it appears it has some old function, with the error saying "this._followers.forEach" isn't a proper function. It's only on one line, would this be the only thing to change in order to work with MZ?
Ah finally got to try it out, it appears it has some old function, with the error saying "this._followers.forEach" isn't a proper function. It's only on one line, would this be the only thing to change in order to work with MZ?
I don't have MZ so I can't test it. Does it work with FOSSIL?
I don't have MZ so I can't test it. Does it work with FOSSIL?
Tried it with FOSSIL, seems like it has no affect on Move Toward Player. Made sure the plugin had the diagonal movement enabled, But my character nor the event move diagonal at all. It was worth a shot though! Thank you so much for your help.
Tried it with FOSSIL, seems like it has no affect on Move Toward Player. Made sure the plugin had the diagonal movement enabled, But my character nor the event move diagonal at all. It was worth a shot though! Thank you so much for your help.
You could make a thread in plugin requests asking someone to port the plugin to MZ

Original thread: https://forums.rpgmakerweb.com/threads/events-cant-have-good-pathfinding-with-diagonal-movement.161288/