NPCs movement

Iabtr

Warper
Member
Joined
Jan 21, 2020
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMMV
I know this is not the right place to ask it but I couldn't find any other thread where sprite movement is involved.I am new to RPG maker and its my first project.......I am making a military training base and I want to place two soldiers facing each other and moving one step back and forward but together.No matter what I do at some points the sprites just delay movement creating a gap in between.I have already seen this in many RPG games I have played........so I know it's possible but just can't figure out how to do it.
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
6,192
Reaction score
4,302
First Language
Dutch
Primarily Uses
RMXP

I've moved your post to its own thread.

 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,837
Reaction score
12,253
First Language
English
Primarily Uses
RMMV
can you please show screenshots of your events so we can see what you're doing to move each one?

If you use alt+printscreen, it will capture everything we need to see, without extra crud that's just going to make the image smaller and harder to read.
 

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
1,989
Reaction score
981
First Language
Spanish
Primarily Uses
RMVXA
if both events are set to the same update rate and speed, and if both events have the same move route, and *even* if there's a coordinator event sending commands to those events, the transmission is linear, meaning one event will always be updated one frame before the next.

that, assuming both events in question have contiguous IDs.
if not, several other events could be being updated in between, while one is moving and the other is not.

if both events are right in front of one another, that delay will cause one event to bump into the other, and stop.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,837
Reaction score
12,253
First Language
English
Primarily Uses
RMMV
No, photos taken with phones are bad at the best of times, and those are awful quality. We can't see some of the most important stuff on there.

From the little bits I CAN see, you have an autonomous move route on each event (custom on one and approach on the other) - there's no way they're going to move in unison. They both also have move routes in the event commands, which are not going to happen until the events are triggered, and when they do, they'll conflict with the autonomous move routes. And an action button trigger on one of them, and I can't see the other.

Please wait until you can take a screenshot, and post them up. Also post screenshots of the autonomous move route on the 'custom' one.

It might be worth doing some tutorials, because you've got a pretty decent mess there and maybe need to learn about move routes in event commands, autonomous move routes, and event triggers.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
29,569
Reaction score
6,892
First Language
German
Primarily Uses
RMMV
as said above, your biggest problem is that you're using both autonomous movement and set move route command.
You'll need to know that each event can have only one move route at any given time, and both autonomous movement and set move route command are two different ways to set that one move route.
Using both ways means that the move route itself is constantly overwritten from one or the other origin, and you'll never be able to tell which source is now responsible for the currently active move route.

Both ways are valid because they have different uses and advantages, but you can't use them at the same time.
 

BK-tdm

Manga Maker
Veteran
Joined
Jun 21, 2018
Messages
141
Reaction score
127
First Language
English
Primarily Uses
RMMV
Try making a parallel event with set move routes for both events and only add a wait on the last one like this:

>move event 1 left
>move event 2 right (wait)
>move event 1 right
>move event 2 left (wait)
>wait X frames (so the parallel doesnt run too much)

This is the best way i have found to move 2 or more events simultaneously and "synced" though i always do it on cutscenes so its an autorun instead of a parallel chain, dont know how well will this approach work on parallel background npc animations but its worth the try.
 
  • Like
Reactions: Bex

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

reading what makes plugins tick, so you can use other plugins to trigger said plugin... setup up Luna MV to have my own custom ATB Gauges from Yanfly's ATB. cool
It's Easter on Monday. Anybody got any Easter quarantine eggs? It'll also be my birthday, I'll be 31.
Sometimes I feel like I'm using plugins feature the wrong way. But as long as it works tho.
Dusting off RPG Maker MV and seriously working with it since COVID-19 has me with a lot of free time. Have a game project that is coming along steadily and I hope it proceeds past the alpha stage into something good now that I figured MV out.
I've had an account here for four years, but only started posting and working in 2018. I guess I always had the want. Crazy. Guess I'll be seein' y'all.

Forum statistics

Threads
95,787
Messages
931,949
Members
126,213
Latest member
helencurtis2020
Top