Pulling barrel/event problem

If another actor follow me on a map:
If i push a barrel away from the player - no problem
If i push a barrel and the player go backward, the barrel dont move (follow) to the player. - problem

If : Button (OK) is pressed
Movement route : Player (skip)
: 1 step backward
Wait 5 Frames
Movement route : This Event (skip, wait)
: move to the player


If i move only on the map without a follower actor - no problems.
Just to get this straight:
Do you want the barrel-event to continously follow the player or just to have it move onto the tile the player was standing on?

Spoiler: German/Deutsch
Nur, damit ich das richtig verstehe:
Willst du, dass das Fass-Event dem Spieler dauerhaft folgt oder soll es einfach nur auf dieselbe Position gehen, auf der der Spieler steht?
Edit: Nevermind, read it wrong. Disregard.
Please give a screenshot of the complete event, because your retyping above is missing several critical informations.

The OK button in the conditional branch used like your excerpt will never work, no matter what you do, because the check for button needs to be either in a loop or in a parallel process to be able to work like intended. And if you placed that snipped inside such a loop/parallel, then we need to see how it is structured to learn where it went wrong.
@Gonor move onto the tile the player was standing on.
Where the player stood as he pulled the barrel one step backwards. The barrel stops and the player runs back alone. But it is only if a second actor follows the player on the map. If he is alone, everything goes normal.

Spoiler: German
Da wo der Spieler stand als er das Fass einen Schritt rückwärts gezogen hat. Das Fass bleibt unverändert stehen und der Spieler läuft alleine rückwärts. Ist aber nur so, wenn ein zweiter Actor dem spieler auf der map folgt. Wenn er alleine ist, dann geht alles ganz normal. Beim Schieben geht auch alles ganz normal mit einem zweiten verfolger.
@Platsch
Please show us a screenshot of your event.
That sounds as if it is a mixture of passability and follower problem, but to solve it we need to see how you did it.
In addition to Andar:
Are you using any plugins? Especially plugins affecting the followers?
This isn't javascript and it isn't an MV bug. I wish people would consider that maybe they did something wrong and it's not actually the engine that's at fault.

When the player moved back, did the follower automatically move to the player's old position? If so, you probably could have included that bit of information in your original post, as that would make it pretty clear to everyone what the problem was. The barrel can't move to where the player was, because a follower is now in that spot.
Its a new project:
Barrel to push - no problem
Unbenannt1.png

the player go one step backward without barrel:
Unbenannt2.png

Unbenannt3.png
Unbenannt4.png
Unbenannt5.png

have no plugins

@Shaz thanks
This may be related to a similar issue I was having a while back with VX Ace where the barrel was trying to move before the player had registered as being 1 tile back, so it failed to move because it still recognised the player as occupying the spot it wanted to be in.
@Platsch
Your problem is that your event is completely wrong.

Read what I wrote above:
The OK button in the conditional branch used like your excerpt will never work, no matter what you do, because the check for button needs to be either in a loop or in a parallel process to be able to work like intended. And if you placed that snipped inside such a loop/parallel, then we need to see how it is structured to learn where it went wrong.
You have neither a parallel nor a loop - which is the reason why that doesn't work.

The conditional branch checks if the button is pressed in the single frame that it is executed. Since the "Player Touch" requires the player to move onto the event to touch it, the button pressed when the event activates is always the one that pushes the barrel - if you turn your player to move away, the event is no longer touched and because of that it is no longer executed, completely ignoring your player move.

You simply cannot pull an event on player touch unless it is the only thing that can happen on player touch - if you want several different things to happen (like a choice between pushing and pulling), you need a completely different event structure.
Please search for a tutorial on how that is done correctly - I don't have time to make an example right now.


Moved to: MV Support
Because it has nothing to do with javascript
Moderator note: I also renamed your topic title, because it is not an engine bug but wrong eventing
Despite that, as I already said, the first follower moves to where the party leader was. So the tile is not empty. So the barrel cannot move onto it - it might attempt to, but it will fail.
You could probably get around it by having a script call that moves the first follower back as well.
Or just turn followers off
You can't just erase people, Shaz! You monster.
Ok. Mogwai time.

How about gatherFollowers and priorityType so the followers don't get in the way.
dragobject-o.gif

Code:
Set Movement Route: • This Event Direction Fix On
Code:
Set Movement Route: • Player Direction Fix On
PHP:
var d = {2:8,8:2,4:6,6:4}[$gamePlayer._direction];
$gameMap._events[this._eventId]._priorityType = 2;
$gamePlayer.moveStraight(d);
$gamePlayer.gatherFollowers();
$gameMap._events[this._eventId].moveStraight(d);
Code:
Set Movement Route: • Player Direction Fix Off
                  : • wait : 30 frames
Code:
Set Movement Route: • This Event Direction Fix Off
PHP:
$gameMap._events[this._eventId]._priorityType = 1;

Original thread: https://forums.rpgmakerweb.com/threads/pulling-barrel-event-problem.75164/