Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Making an NPC follow the player, but not stand on top of the player  (Read 2140 times)

0 Members and 1 Guest are viewing this topic.

baggles

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 1
    • View Profile

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!
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Making an NPC follow the player, but not stand on top of the player
« Reply #1 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.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.028 seconds with 19 queries.