I need help doing the event to stop when hitting a wall

Hi guys! I need help doing the event to stop when hitting the wall.
The player is suppose to push a rock and when it hits the wall it stops the event. The player is suppose to play around with the rock until it gets to the right place.

Kind of like the "Goof Troop game for Super nintendo".

1678376849234.png

1678376874138.png


I used a photo of some character for now, but anyway, if I put it to move "Move away from player" with the "Repeat Movements", "Skip if cannot move" and "Wait for completion" checked, it will stop moving when hitting the wall, but the event won't go to the next movement and wait and then finish the event.
I think is because the "Wait for completion" is checked, but if I unchecked it, it will simply not move at all. I'm sorry for the screenshots in portuguese.

If anyone can help me, thank you!!
So the rock should roll over until it hit the wall, am I understand you right? And then player can push it from other direction for another roll over?
Take the repeating out of your movement route and use a Loop event command.
Screenshot 2023-03-09 121932.png
@danynyan, ATT_Turan was right, you should uncheck that "repeat movements". An alternative, you can try this one too :

CaptureEvent343.JPG



*note that, you can copy paste that "move down", "move right", "move left" and "move up" as many as you need. The event will always stop when hitting the wall.

Hope that helps.
Take the repeating out of your movement route and use a Loop event command.
View attachment 255494
Omg, it worked!!! Thank you very very much!!!
Omg, it worked!!! Thank you very very much!!!
Glad you've made it, I just wanted to say you can also use Visustella's Events and Movement, and there are custom movement commands which can help you a lot.
@danynyan Which maker are you using? You posted this in MZ support, but your profile says you use MV.

fizzy's suggestion of VisuStella plugins only works if you're using MZ. (there's probably something in Yanfly's Move Route Core for MV, but you should make it easy for people to know what to recommend)

Original thread: https://forums.rpgmakerweb.com/threads/i-need-help-doing-the-event-to-stop-when-hitting-a-wall.155645/