Question about An 'NPC Follow' Quest

yep ^-^

Then my best guess is either the Area2D or the player’s mask or layer is set incorrectly.

Hey! You’ll want to add a distance check in your NPC’s movement script - something like checking the distance between player and NPC each frame, and if it exceeds your threshold, pause the pathfinding/movement. Most engines have a distance function (like Vector3.Distance in Unity), so just wrap your movement code in an if statement that only runs when the player is close enough!

1 Like