Change/reverse charact directions

Hello,

I would like to reverse the direction of my hero after he drinks alcohol ^^

I succeeded halfway.
I created a parallel common event with the following conditions
"if key "down" is pressed" => direction up".
etc.

But I have two problems:
- The first one is that the hero moves two squares each time.
- The second one is that the player can't interact with the characters if the hero is blocked in his movement. Since he moves two squares each time: if a character/event interrupts the hero's path, the hero can't finish to move his two squares, then it's impossible to interact.

Can someone help me?
Hey,

This happens because if the player is already moving, it will buffer the new move route and execute it once the current move is finished.
You can prevent this by either...

1)
Putting your four conditional branches into a "Loop" event command and enable "Wait for Completion" in your move routes (If you let the event finish and restart or if you use "Jump to Label" (MV only, fixed in MZ) the event will wait another frame before restarting, giving control back to the player).

2)
Using another conditional branch to check whether the player has stopped moving:

!$gamePlayer.isMoving()

Edit: See next post
I couldn't do it.
Would you be so kind as to send me a screenshot to help me visualize it better?

Thanks to you
Like this it's working for directions and interactions.
But if I talk with a character, I can move during the dialog box.
Uh, woops, sorry for the previous answer, I forgot/remembered some interactions wrong...^^

Generally I would recommend the Conditional Branch solution here. You can extend it to also check if the player would normally be allowed to make a move (something I forgot in the last post):

If : Script : !$gamePlayer.isMoving() && $gamePlayer.canMove()
(Your original event code here)
end


For the loop solution it would be recommended to have the event wait 1 frame if the player did not start a new move (otherwise the event will pause after 10000 commands, but this fallback might not be ideal). You'd also still have to check if the player is allowed to move in the first place, so the benefits are rather small (you'd save a few conditional branch checks while the player is moving)
I put the script inside the loop or not?
I tried both and it doesn't work :/
Can you take a screenshot to help me please ? Especially for what you explain to me in the last paragraph, it helps me to see more clearly and not to make a mistake.
As said, I made a mistake and kind of forgot some interactions when making the loop suggestion, so it does not add much utility.

A simple fix could just look like this though:
Spoiler
DrunkMove.jpg
It works perfectly. Thank you very much for your help!:ysrs:

Original thread: https://forums.rpgmakerweb.com/threads/change-reverse-charact-directions.150057/