Moving NPC changing position upon interacting

Quanee

Veteran
Veteran
Joined
Sep 14, 2017
Messages
63
Reaction score
8
First Language
Polish
Primarily Uses
RMMV
Hello everyone,


I am having an issue with event pathing. My NPC (at the table) is tied to 2 different events, one for pathing, one for interacting with my hero. Pathing is super simple - walk right, turn down, walk rleft, turn down.

Now for the buggy part. I can talk to the NPC freely, he will turn toward me and say 2 random things I've got on a switch loop. If I stand on a red mark, he will just keep pushing until he gets there, no issues here either. However, there's this 1 second window where he turns to move, and if I start talking to him there, he will move toward black spot instead, completely destroying his pattern.

To put it simply, whenever I try to interact with pathed event the moment it's supposed to move, it will move to the opposite direction, screwing up everything.

Any help would be greatly appreciated.
 

Attachments

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,668
First Language
German
Primarily Uses
RMMV
Show us the event and move route pages, then we can tell you what to change.
 

Nolonar

Veteran
Veteran
Joined
Feb 18, 2018
Messages
163
Reaction score
243
First Language
French, German
Primarily Uses
RMMZ
Any reason why you need a separate event for pathing?

Your NPC should be the only event you need for what you want to achieve (based on your description).
Just choose "Custom" for "Autonomous Movement", and define the "Route..." like you would in your pathing event.

Capture.PNG
Doing this will stop the NPC's movement, as soon as the player is interacting with it.
 

Quanee

Veteran
Veteran
Joined
Sep 14, 2017
Messages
63
Reaction score
8
First Language
Polish
Primarily Uses
RMMV
First attached pic is my routing, the other 2 are self switching dialogue options.

@Nolonar I've tried using custom movement, but it seems to be lagging out my NPC for a split second before turning down.
 

Attachments

Quanee

Veteran
Veteran
Joined
Sep 14, 2017
Messages
63
Reaction score
8
First Language
Polish
Primarily Uses
RMMV
I have just tested the "custom" autonomous movement and it's happening to it as well.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,668
First Language
German
Primarily Uses
RMMV
Never, absolutely never place a loop inside a parallel process.
Parallel processes automatically loop, and the added loop will throw off all internal timing controls.

Additionally, the skip and wait options of the move route are the reason for the seemingly random behaviour...

Go back to start, the event needs to be done differently.
Please describe to us what you want to achieve with the event, and we will tell you how to do that.
Usually this should be done with autonomous movement and action button trigger, never using parallels at all.
 

Quanee

Veteran
Veteran
Joined
Sep 14, 2017
Messages
63
Reaction score
8
First Language
Polish
Primarily Uses
RMMV
@Andar Thank you, it would seem I have gotten rid of the first issue - weird pathing bugs. I have completely scrapped the event and made it to work with just autonomous event and it seems to be working just fine.

I'd like to only ask one more thing. Is it possible to make my event NPC movements more... fluent? He seems to be taking his time between movements, like few frames.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,668
First Language
German
Primarily Uses
RMMV
Frequency and speed both affect movement.
And frequency is how often the movement is done or paused, you'll need it to max to eliminate random pauses and then adjust the speed slower if the event moves too fast.
 

Quanee

Veteran
Veteran
Joined
Sep 14, 2017
Messages
63
Reaction score
8
First Language
Polish
Primarily Uses
RMMV
@Andar Works like a charm now, I've been changing frequency on a wrong tab all this time... thank you.

Solved!
 

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,975
Members
137,563
Latest member
cexojow
Top