1
Technical forum / Making an NPC follow the player, but not stand on top of the player
« on: November 15, 2008, 09:30:20 PM »
Hi all,
I'm currently trying to implement a feature where an NPC always follows the player around (as a sidekick of sorts). I've implemented the method they used in this thread: http://forum.dead-code.org/index.php?topic=2375.0
However, as it works right now, the NPC goes directly to the coordinates of the player, therefore standing on top of the player. Does anyone have a good way to make sure the NPC follows the player, but stays slightly behind them all of the time?
Any help would be greatly appreciated!
I'm currently trying to implement a feature where an NPC always follows the player around (as a sidekick of sorts). I've implemented the method they used in this thread: http://forum.dead-code.org/index.php?topic=2375.0
However, as it works right now, the NPC goes directly to the coordinates of the player, therefore standing on top of the player. Does anyone have a good way to make sure the NPC follows the player, but stays slightly behind them all of the time?
Any help would be greatly appreciated!