Player and map movement with no walking (snap to tile)

I've had a look around the core plugins and couldn't find what I was looking for on my own.

Basically, I want the player character to move from tile to tile without walking. Not just without a walking animation, but without the scrolling movement as the player moves from tile to tile. Say a player is on one tile. They press the right arrow key, and immediately they are on the adjacent tile. No animation, and no scrolling. It's like they "snap" to tiles. I think I would also need a way to create a buffer between each tile movement, since without a scrolling animation I'd imagine they'd zoom across the map in the blink of an eye if they hold down the movement key.

Similarly, I'm looking to achieve this effect with map scrolling as well. Any help would be greatly appreciated.
You will probably need a plugin. Unless you can do something with common events and detecting key presses and using the Transfer Player command with no fade.

Do you want this to happen ALL the time, or do you want to be able to switch between normal movement and snapping?
Hello!
Look, there's even a way. But I think it's pretty hard work.
Using this script call:

Code:
$gamePlayer.locate (x, y);

I would try something like this:
A parallel event that is always storing the X and Y position of the player.
Stores the X position in a variable (1)
Stores the Y position in another variable (2)

You can do this other part in another event, or in the same event:
Conditional branch:
if (player moves down) {
$ gamePlayer.locate (variable (1), variable (2) + 1);
if (player moves up) {
$ gamePlayer.locate (variable (1), variable (2) - 1);
if (player moves right) {
$ gamePlayer.locate (variable (1), variable (2) + 1);
if (player moves left) {
$ gamePlayer.locate (variable (1), variable (2) -1);

Maybe there's an easier way, but I could think of it now. I did not test, so I do not know exactly if it will work.

I have the impression that I'm letting something go, but maybe it will already serve you for a start 🙂
I think your location positions are not quite right there. it should be variable(1) + or - 1 for right and left.

You'll also want to add a Wait X Frames to the very start of your parallel process event, 'cause you sure wouldn't want them moving 60 tiles in a second.
I actually remember someone requesting this before, and there was a solution given. I'll see if I can find it. They used a particular word for this type of movement that I cannot recall
@Shaz, I want it to happen all the time.

@Eliaquim, I think I am following you. But I'm not quite sure how to get this set up, particularly how to set the X and Y values as variables. This would solve the player movement, but the map would still scroll. I was hoping there was a way to adjust the core scripts to achieve these effects, or perhaps through a plugin.
Control Variables will let you get the player's X and Y position. Go to Game Data.
@Shaz, Got it, thanks. Now how do I exactly do I call the variable in the script call? I tried like Eliaquim mentioned but I am getting a "variable is not defined" error, presumably because I'm not calling it correctly.
Because Eliaquim gave you pseudocode, not actual script code.

To get the value in a variable, you need to use $gameVariables.value(id)

You could do it without script like this:

Code:
Control Variables: [0008: Player X] = Game Data > Character > Player's > Map X
Control Variables: [0009: Player Y] = Game Data > Character > Player's > Map Y
Control Variables: [0010: Map ID] = Game Data > Other > Map ID
If (Conditional Branch) Player is Facing UP
  Control Variables: [0009: Player Y] -= 1
Else
  If Player is Facing DOWN
    Control Variables: [0009: Player Y] += 1
  Else
    If Player is Facing LEFT
      Control Variables: [0008: Player X] -= 1
    Else
      Control Variables: [0008: Player X] += 1
    End
  End
End
Transfer Player: Map [0010: Map ID], X [0008: Player X], Y [0009: Player 9] No Fade


Note you also have to be monitoring for a keypress and only execute the above when an arrow button is pressed. You could actually split this out into 4 conditions - one for each direction (checked in the keypress) and not worry about the player facing direction, because they're going to be facing in the same direction as the keypress. So you will still need to experiment with the above, and not expect it to work just by putting it into an event.
Okay, I'm getting it working... somewhat. I'm running into some problems. The first problem is that the player still moves as normal when I press a direction key. He'll scroll for a brief second, then snap to the next tile as intended. So to stop that, I tried using a plugin command in Yanfly's Stop Map Movement script which prevents the player from moving, but is still able to access menus and stuff. Problem with this though, is that even though it looks like the effect I'm going, I don't think it's registering the player's coordinates because I'm not able to interact with events.
Maybe if you remove the original functions of the rpg maker core with a switch (line 3000)?
Spoiler: Code
Code:
Input.keyMapper = {
    9: 'tab',       // tab
    13: 'ok',       // enter
    16: 'shift',    // shift
    17: 'control',  // control
    18: 'control',  // alt
    27: 'escape',   // escape
    32: 'ok',       // space
    33: 'pageup',   // pageup
    34: 'pagedown', // pagedown
    37: 'left',     // left arrow
    38: 'up',       // up arrow
    39: 'right',    // right arrow
    40: 'down',     // down arrow
    45: 'escape',   // insert
    81: 'pageup',   // Q
    87: 'pagedown', // W
    88: 'escape',   // X
    90: 'ok',       // Z
    96: 'escape',   // numpad 0
    98: 'down',     // numpad 2
    100: 'left',    // numpad 4
    102: 'right',   // numpad 6
    104: 'up',      // numpad 8
    120: 'debug'    // F9
};

OR for stop player movement, i tried the yanfly but i think this is better (can stop events and player, you choose)

To make the camera not scroll, but snap to, i think you can use this script call i found on the script list
Spoiler: link

Code:
$gamePlayer.center($gamePlayer.x, $gamePlayer.y)
You can put a event to.
Or use plugins like srd camera core.js
Or qcamera.js

I almost trying to make this to xD
@Eliaquim, That plugin you linked worked! I can interact with events now! I also got the camera to snap too. Thanks!

However, there is one more problem I don't know how to solve. With snap movement, I can pass through tiles marked "unpassable", and even go off the edge of the screen. I can also move through events with the same priority as the player.

Also, random battles don't appear to be triggering, presumably because the player isn't actually moving from tile to tile but being teleported there by Transfer Player.
Hmmmm
Try use that plugin from yanfly, region events. With him you can assign regions for events and players cannot pass.

See if can be solved.

But for the player dont go off the edge of screen... Maybe you find a solution in the plugin of yanfly, SMART JUMP.
Why?
When you try to make a jump system by events using move route, theres a issue that the player jumps in tiles he cannot jump and outside the screen to.
But when yanfly made this SMART JUMP plugin, he manage to fix that issue. So whenever the player will jump from outside screen, he just end the movement on the border and dont pass! So i think you can check the code to see what you can found about this.

Or, we can somehow think in a formula to put in the conditional branches that checks if the player is close to the edges of the screen, then if its true, than the conditional branch will not execute the "set location"(your movement grid) command. But for now i cannot think how we can do this :/
This was the thread that I was thinking of, it just popped up again:

https://forums.rpgmakerweb.com/index.php?threads/remove-lerping-from-movement.96831/
@Aloe Guvner, Thanks for getting back to me! That plugin is exactly what I need.

Original thread: https://forums.rpgmakerweb.com/threads/player-and-map-movement-with-no-walking-snap-to-tile.103021/