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.)
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.)