How can I move two events exactly at the same time?

Hello guys!
I'm developing a dungeon crawler, and at one point in the game the party encounters a puzzle.

It's one of those classic, push the statue on to the pressure plate kind of puzzles.

The first issue I encountered was that the sprite for the statue is bigger than 48px wide. Its actually exactly 96px wide.

Knowing that sprite size really doesn't matter when it comes to events, I tried it and as expected it centered the event in the middle of the sprite making the sprite clip into walls if pushed against them.

So, to get rid of this issue I tried to split the sprite and half, make two events next to each other (1x2) and apply each half of the sprite to the events respectively.

And visually, it looks perfect but when it comes to actually moving the events at the same time I am stumped.

I tried using the "Set movement route" event setting, and it sort of worked.

Most or the time they don't move perfectly, leaving a seam between the sprites.

Another issue I've encountered with this is if I were to push the statue down (south) and one of the events is blocked by a wall, it'll just get stuck while the other event will still move, splitting the statue in half.

So, right now I am wondering how to possibly fix this issue OR if there's a better way to handle this 1x2 statue situation!

Thanks in advance.

Ps. I am typing this on my phone, I can't attach any images from where I am right now so I hope this post makes sense.
If not, I'll update it with images tomorrow.
That's easy. To move two events at the same time, when you program the two events, be sure to uncheck the box that says "wait until completed". This will make it so the two events can move simultaneously; otherwise they will take turns and happen after the other one has occurred. Also, it will otherwise slow down the gameplay by making it so you can't do anything until the events have completed otherwise. That's the advice I have if you have trouble making them both occur simultaneously. However, if this has to do with the movement of the sprites, someone else can help.
That's easy. To move two events at the same time, when you program the two events, be sure to uncheck the box that says "wait until completed". This will make it so the two events can move simultaneously; otherwise they will take turns and happen after the other one has occurred. Also, it will otherwise slow down the gameplay by making it so you can't do anything until the events have completed otherwise.
Yes thanks, I know this! But this isn't the issue i am having at all.

The seam I am talking about is about a pixel wide, but it's very visible.
A screenshot is much better than you trying to explain it.

You could just use a single event for the image, and place events around the perimeter so it can't be pushed up against a wall.

Or use a region restrictions plugin, again to stop the event being pushed against a wall.

I wrote a Character Anchors plugin that you might be able to use to stop the event being centered on the tile, and then do one of the above to stop it being moved against one wall.


Are you actually using MZ? Your profile says you primarily use MV, but both of your two posts are in the MZ Support forum.
I assume there's a lag between the software executing the first and second events, resulting in the sliver of emptiness in between them.

I'm not smart enough to know how to do this with only eventing, but for cheap/free (depending on whether you're using MV or MZ) you could use the Yanfly/VisuStella plugin that lets you resize hitboxes. I think it basically lets you stack as many directions as you need (i.e. "extend the hitbox 2 tiles upward and 3 tiles to the right).
If you have a smooth 60 FPS and you move each half of the event 1 frame at a time you won't see the lag between the two events moving.
A screenshot is much better than you trying to explain it.

You could just use a single event for the image, and place events around the perimeter so it can't be pushed up against a wall.

Or use a region restrictions plugin, again to stop the event being pushed against a wall.

I wrote a Character Anchors plugin that you might be able to use to stop the event being centered on the tile, and then do one of the above to stop it being moved against one wall.


Are you actually using MZ? Your profile says you primarily use MV, but both of your two posts are in the MZ Support forum.

This screenshot is taken during the execution of the push event.

nw_09XxxZBrRw.png



This is the very simple set movement route commands i'm currently using.

RPGMZ_TbV2z8PK6B.png


I am using MZ.
A screenshot is much better than you trying to explain it.

You could just use a single event for the image, and place events around the perimeter so it can't be pushed up against a wall.

Or use a region restrictions plugin, again to stop the event being pushed against a wall.

I wrote a Character Anchors plugin that you might be able to use to stop the event being centered on the tile, and then do one of the above to stop it being moved against one wall.


Are you actually using MZ? Your profile says you primarily use MV, but both of your two posts are in the MZ Support forum.
I ended up using a region restriction plugin, so this issue is resolved.
Thanks Shaz!
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-move-two-events-exactly-at-the-same-time.157417/