RPG Maker MV event movement help.

So, I have this event in RPG Maker MV that I need help with.


I have this event that the player can interact with. At some point in the event's code, there has to be a gap between the player and the event, so what I decided to do is this.


I had 4 variables, two are used for the player's X values, and 2 for the player's y values. The event will set two of the variables to the player's co-ordinates, then attempt to move the player backwards with Skip if Cannot move checked. It will then set the other two to the player's co-ordinates and compare the co-ordinates before the movement with the co-ordinates after. If they're the same, the event will move forward. This works if "Wait for completion" is turned on, but I have a message box that's supposed to show when the player or event moves, so I need "Wait for completion" turned off. Since it's turned off, however, that means that when the co-ordinates are set "after" the movement part, the game will think the player couldn't move and will move the event as well as the player. What I need to know is if there's a variable in RPG Maker MV that returns the X or Y value of the player if they're standing still, but will return the X or Y value of the block he's moving to if he's moving? (So, if his Y value is technically 24, but he's moving up, it should return 23, but if he's standing still instead of moving up it will return 24.)
Please post screenshots of your event pages, that will tell us where everything went wrong. It looks like you got something wrong with the timing, and to solve that we need to really see what you did.
This is an MV support question.  Tech Support is for when you can't get the engine installed or running, not for "how do I do XYZ in an event" questions.


There is a isMovementSucceeded function you can call to see if the move was successful.  If you do that immediately after the move route the value should still reflect the results of the last movement command.  In a conditional branch, put $gamePlayer.isMovementSucceeded() in the Script box.  It will return true or false.
I've moved this thread to RPGMaker MV. Please be sure to post your threads in the correct forum next time. Thank you.
[IMG]http://i.imgur.com/XG5hMGe.png[/IMG]


This only works with wait for completion, but I want to do it without wait for completion as there should be a message box right when the player/event is moving.


What this should do is make the player move back if he can, but if not the event will move forward.
Please give a full screenshot of the event, do not crop half of it.


The problem most likely is in the way the event is triggered, because that behaviour should work depending on what happens.


Also, I don't see any show text - where is that show text you mentioned that isn't displayed?


Whenever there is a timing problem, we need to see all involved events with all their options, not simply a partial content of one event.
Please give a full screenshot of the event, do not crop half of it.


The problem most likely is in the way the event is triggered, because that behaviour should work depending on what happens.


Also, I don't see any show text - where is that show text you mentioned that isn't displayed?


Whenever there is a timing problem, we need to see all involved events with all their options, not simply a partial content of one event.

Okay, here's a full screenshot of the event. I had to crop out the dialogue and names of my common events because they're simply too weird.


[IMG]http://i.imgur.com/pC3I0OX.png[/IMG]
an event can have only one move route assigned, and in your case both the autonomous movement setting and the set move route command assign moveroutes.


The set move route is simply overwritten by the autonomous move route before it can be executed correctly if you don't set wait.


additionally, the event is currently facing the player (that happens automatically on action button), so the event stepping forward after the player steps backward will always close with the player again.


I suggest switching event pages on action button, with the new page having random autonomous movement disabled, and switching back after the process (which should then include a simplyfied version of the common event as part of the new event page).

Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-mv-event-movement-help.65238/