How Can I Make One Event Follow Another?

Hi. Yes, I'm back again, using MZ this time!

I was working on an event where I wanted to use the Horse & Buggy vehicle combination provided, but I can't seem to make them move together smoothly. 2 parallel events do work for movement route, but that gets complicated if I want to do a cutscene or have the pair use the "approach" movement route so it can come over to them wherever they are and interact.

I was hoping that since they gave us a horse & buggy that there would be a simple way to animate them together. I admit I often miss the obvious, and hope that's what's happening here.

Thanks for any tips anyone has to offer.
Events are moved from lowest to highest event ID. Make sure the front is a lower event ID than the back. If not, the back will trail 1 frame behind the front at best, since it needs to wait for the front to move out of the way first.

For turning corners, I'm not sure if there's a "nice" way to do it, since turning the front part moves the back part by more than 1 tile. One option is to use move routes interrupted by a Set Event Location command. If the location of the events is uncertain then you can:
  • Use Control Variables > Game Data > Character > Map X|Y for the front part,
  • Convert those values to the appropriate position for the back, based on the front's direction,
  • Use the resulting variable values in Set Event Location.

Edit @Rodak: whoops, completely failed to answer your original question. To move towards another character you can use this in a Script command in a move route:
JavaScript:
this.moveStraight(this.findDirectionTo($gameMap.event(5).x, $gameMap.event(5).y);
However, for objects comprising multiple events this will be prone to strangeness when turning, as mentioned.

The easiest option may be to use a plugin that lets you customise event hitboxes. You can then make one big sprite for a given event and give it a custom collision size.
Thanks!

I wasn't sure on the lower numbered event priority thing, but wound up using it just by trial and error.

I'll give the "set event location" trick a try for the parts where it gets ugly, but I may need to rethink this since I'm not sure if I can give the pair a random movement route and have them stay together.

I'll have to suggest a "parenting" type thing in the suggestions area, or maybe make it a plugin request. Not sure which is better suited for that, but I'm sure I'll find out...
Not sure if you noticed, but I made a quick edit to my post. There are MV plugins for customising event hitbox/collision size, not sure if there's anything like that for MZ yet. The MV ones might work in MZ, though, since not much has changed there. Maybe try this one:
Thanks again!

I hate to admit this, especially since it's so integral to the entire program, but I'm trying to do as much as I can with as few plugins as possible since my last project wound up causing conflicts and resolving them was out of my league 🙁

I know the one you mention seems rather focused and should not cause conflicts so I'll look for it and see what works best. One scene is expendable (though if it became a traveling merchant this would be a big help!).

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-make-one-event-follow-another.134772/