Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: baggles on November 15, 2008, 09:30:20 PM

Title: Making an NPC follow the player, but not stand on top of the player
Post by: baggles 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 (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!
Title: Re: Making an NPC follow the player, but not stand on top of the player
Post by: Mnemonic on November 15, 2008, 10:15:44 PM
It is possible to define "private" blocked regions that travel with the actors. See the "Collisions between multiple actors" paragraph in the "Actors" chapter of the documentation.