[Solved] Simultaneous movement with an event

I'm trying to have an event move simultaneously with the player. Here's my current event:
Moving event.png

It works pretty well, except for one problem. When the player and the event are adjacent, if the player tries to move/turn toward the event, the event moves without the player, and they desync. How can I fix this? (All the directions for this event are the same except for movement direction)

p.s. I'd much prefer to not use a plugin.

EDIT: Okay, I feel like such an idiot now. It was a really simple solution. 😛
Im not sure you will be able to do it that way, not efficiently anyway.
I know you'd rather not use a plugin but this is the best bet for you.
http://himeworks.com/2016/03/guest-followers/
This is just for following (according to the site). I want the event and the player to be able to be far away from each other.
Oh sorry I misunderstood your question.
So you want like a "dark link" so to speak where the npc mirrors the actors movements?
hmmm.... I'm going to look into this
The Hime plugin is much more versatile than that. It enables you to set a move route for the guest player.

This is also a very good plugin that is a little more intuitive, you do need to control party order to use it properly though (disable player reorder options)

https://forums.rpgmakerweb.com/index.php?threads/follower-control-plugin-by-tyruswoo.55250/
@Skunk Yeah, that's what I'm talking about. 🙂

@just1witness I have no need to have the event be a guest player. I can already set move routes. 😛 The question at hand has nothing to do with party members.
I know there may be a script call using $gamePlayer that gets the players location on the map...
That's what im currently looking into for you.
@Skunk I can set variables to get the player and event's locations, which I'm in fact already doing in the project. I could use the relative coordinates to tell which player/event is where, but that's a bit inefficient, so I'm trying to think of or get some better idea. 😛
Well with anything there is gonna me more than one way to do this.
I would recommend looking into the script calls for getting the players x and y coordinance.
That way you can simply put the script call in the move rout of the event and it will mirror your players movements.
One thing though.. when you walk towards the NPC, are you wanting the NPC to walk towards the player or away from the player?
I would recommend looking into the script calls for getting the players x and y coordinance.
I don't understand what you mean, I can already get the player's x and y coordinates with events...?
One thing though.. when you walk towards the NPC, are you wanting the NPC to walk towards the player or away from the player?
Lol I think you should read my first post more carefully. 😛 I'm trying to get the event to make the exact same movements as the player. So if you move left, the event will move left, and if you move right, the event will move right, etc. I have a pretty solid system as it is, except for one thing, which I will now describe in images.
Movement1.png

The gray Harold is the event, and I press right:
Movement2.png

And only the event moves. This here is what I'm trying to fix. I know exactly how my event works, and exactly why this is happening. I'm just asking for what I can do to resolve this. I have a last resort, but I'd like some better ideas. 😛
(sorry if I seem rude or just plain dumb, it's a little late. 😴)
Put this script call in your events move rout
replace the 6 with the number of your event
$gameMap.event(6)._x = $gamePlayer._x
@Skunk This just makes the event match the player's x coordinate. I don't see how it helps.
try replace the = sign with a - sign
Im not java master but that script call with a specific variation will do what you are trying to.
You might want to ask this in java script support, even if its not a plugin in these are javascript commands, but this isnt the hole for asking about javascript im just trying to help lol

@Archeia can you move this to java script support?
I don't see how a variation of this script call would work without needing to specify the distance between the player and event, which would be constantly changing in the project...
Time for a plugin then sir.
@Archeia can you move this to java script support?
@Archeia Belay that order, please. In this thread, I'm trying to solve my eventing problems. There's no javascript involved here. If I want to ask for solutions involving javascript, I'll most certainly post there myself. But Skunk is trying to change my question. I'd be fine with it if you were to duplicate this thread into javascript support, but I still want to have this question in the event support forum.

@Skunk As I already said, I have a last resort that I can use. I don't need a plugin... *Sigh* Okay, I'm overreacting. As I said, it's late where I am, so I apologize for being rude. But it doesn't matter whether or not I actually want the thread moved, I still don't like that you're trying to do it without my consent.
Like I said before, this thread isnt the right place for this...
You are trying to do this with events, and the way to do that would be with script calls...
Those script calls will be found in the javascript support area of the forum...
Well with anything there is gonna be more than one way to do this.
the way to do that would be with script calls...
Mic drop. (This is mostly a joke, but I'm still trying to make a point. 😛)
You are quoting me during two different trains of thought based on information you gave me between those quotes... lol
Nice try tho 😉
Anyway, I tried my best but good luck buddy.
I would like to hear how you get this working if that's cool with you.
(big dark link fan)
@Skunk Normally, your trains of thought shouldn't contradict each other. 😛
But either way, you were wrong. I didn't use an ounce of scripting. Remember this?
I know exactly how my event works, and exactly why this is happening.
I was also half wrong. I knew what the event did, but I didn't know why it was happening. It turns out that I just needed to swap the player and event movements, so that the event had skip and wait. I think this is because player movement works differently than event movement, since the player doesn't need an event to trigger its motion. I'm currently too brain-dead to explain it in detail, but I think it's basically since the player is controlled directly by the arrow keys, the response to when you're pressing the keys is better and more fluid. But the event is like a robot and just executes its commands. So the "skip if cannot move" thing should be on the event, since it's useless on the player, as the player would keep trying to move........ I'm not making any sense to myself anymore. G'night!

Original thread: https://forums.rpgmakerweb.com/threads/solved-simultaneous-movement-with-an-event.81948/