Can someone help me make an NPC follow the player more smoothly?

How can I make the NPC (Named Brandy in the event sheets) follow the player (Named Aranea in the event sheets) more smoothly?

Apologies if this isn’t written very well or made in a weird way, this is my first time posting on this forum, and frankly I don’t usually use forums in general :0 that being said, let me continue:

In game/in preview, Brandy (NPC) is really close to Aranea (Player) when walking, and often times glitch quickly to different parts of the map before coming back. For example, when she first starts to follow, she appears behind Aranea, then by the door, then back behind Aranea in the span of, like, two seconds.

What is the expected result:

Honestly, I’d just like it to be a bit smoother. It jitters a lot when moving, is a little too close to Aranea, and, as I said, randomly teleports. My main inspiration is Deltarune, I really like how Susie/Ralsei follows Kris in that game, it’s super smooth and what I want to aim for, but I’m willing to settle for just something that looks nice!

Related screenshots

Unfortunately, since this is my first post, I can only have one photo, sorry :frowning:

The screenshot is how Brandy knows where to go to follow Aranea, someone on Reddit helped me with this, so huge shoutout to that person :slight_smile:

hello!

you only need one line of code

image

this is the action used

if you leave it as is… the character will move until it is right on top of it.

if you want the npc to stop when close to the player, just put a distance condition:

image

alternatively, you can use a taxicab distance to make the distance easier to check, which give better performance: taxicab distance wikipedia

Hey! I’m trying this, and it’s a little buggy. Brandy doesn’t follow behind, moreso just be generally attached, and she shakes/jitters whenever I stop moving. What can I do to fix this?

Brandy distance to Brandy is below 30 pixels - this option has an error, correct:
Brandy distance to Aranea is below 30 pixels

also… you do not need to make the character stop using the “stop” action.

this is because the force applied to brandy is an instant force

this will give better performance