MV How to make NPC move to a tile in a straight line?

Is there a way with a script to make an NPC move in a straight line to a specific tile?

What I want:
I want to move a NPC in a straigt line from the upper left corner here next to the line to the marked tile at the bottom right. And While doing so I want the NPC to perform a specific walking animation.
1711974339529.png

In short:
moveCharacter from Tile(0,0) to Tile(30,15) and show the "walkingDown" animation while moving

Is there a way to do this with a script? Because all the options of the engine itself are only for up,down,left,right and 45° diagonal to the next tile. And by checking the ScriptCalls-document I could not find a solution either.
(Even though I already learned a lot from the community here, I'm still pretty much a JS noob)
Hihi! In RPG Maker, characters (which is totally stuff like events, too) can only move onto tiles-nyan.

If that straight line isn't diagonal at 45 degrees, a lot of it wouldn't be going through the center of tiles 😅

U could, like, maybe possibly figure out a way to make the event be moving diagonally...and change its screen y coordinate to offset it from the tile...but you'd have to be doing that calculation every pixel to try to make it look smooth! 👋

And it would all need to be in code. Maybe there's some way to change the event from a tile-based character to some kind of PIXI effect and make it drift in a straight line...but that sounds rilly hard-nyan.
there is so far I know off, but require a plugin.
Chaucer has a plugin "MoveTo" which can do what you want.
Oooo, konnichiwa Mahi-chan
Mehbeh u cud try using a jumpy-jump command wit dis plugin right here
Liek you cud du a jump hite of 0 and have the guy JAHMP there, and it mite lewk liek a line. maybe.
Give it a try, nyan =^.^=

edit:
Ooooh! A-chi-chi-chan, hayai desu ne!
Hihi! In RPG Maker, characters (which is totally stuff like events, too) can only move onto tiles-nyan.

If that straight line isn't diagonal at 45 degrees, a lot of it wouldn't be going through the center of tiles 😅

U could, like, maybe possibly figure out a way to make the event be moving diagonally...and change its screen y coordinate to offset it from the tile...but you'd have to be doing that calculation every pixel to try to make it look smooth! 👋

And it would all need to be in code. Maybe there's some way to change the event from a tile-based character to some kind of PIXI effect and make it drift in a straight line...but that sounds rilly hard-nyan.
Holy cow, you take the 1st april far too seriously xD
Took me a moment to recognize you.
Well, I basically use QMovement for pixel movement. Unfortunately, most of it is for player movement and not everything is good to use for NPCs too (at least as far as I can tell).

Oooo, konnichiwa Mahi-chan
Mehbeh u cud try using a jumpy-jump command wit dis plugin right here
Liek you cud du a jump hite of 0 and have the guy JAHMP there, and it mite lewk liek a line. maybe.
Give it a try, nyan =^.^=

edit:
Ooooh! A-chi-chi-chan, hayai desu ne!
Is the nyan-trope a common meme here on April the 1st? xD
Thanks for the idea, I tried it with adjusting the in-game jump already. Basically it does what I want - but only in a curved line. I will try Turans plugin, maybe it is what I need.

there is so far I know off, but require a plugin.
Chaucer has a plugin "MoveTo" which can do what you want.
Looks good too. Thanks 🙂
I will try bot plugins and decide which one suits my needs.
I tested both plugins.

Turans is more simple and easy to use, but only usable for real jumps/ very fast short movements.

"MoveTo" works for me now, but it has a downside too:
It takes the coordinates not from the map itself but somehow from the viewport. So If the map is bigger than the viewport (so that the camera moves along), the MoveTo-animation is shifted when the camera moved. In this case its not that big of a deal because I only need a small map. But I wonder why it is that way. I could not find anything in the JS-code that looks like it uses the viewport instead of the map (but my JS-knowledge is very limited, so I can't tell for sure).
@MAH1RO I didn't test the plugins or big maps, but if it shifts,
maybe try to request for it?

it also might to rewrite a bit as its the first version, but if it works for
small maps only, than it's good, but I cannot help further though.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-npc-move-to-a-tile-in-a-straight-line.167377/