I want to replicate the teammate behavior of Deltarune, and they seem to copy the exact path of the player with a delay that is based on distance, and knows whether to sprint or walk, I think it's cooler than just using path finding algorithm.
I first tried recording the player's position every minor step and lerp the npc's position with the target position, but it's shaking like crazy with the camera following player smoothly, and it's awkward to do the animations too, because I used physics based movement.
I wonder if the only way is to record the player's input, and let the npc do the exact input to get the same path, but that will requires doing it every input frame, and will have so much to store when there's more teammates, so I think it's not that elegant, does anybody have a better idea?
#Deltarune npc following method
1 messages · Page 1 of 1 (latest)