Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Infinite Patroling
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#4
RE: Infinite Patroling

If you want to make a monster patrol infinitely, pick two of path nodes which the monster will move along. If it's a linear path, choose the two end points, if it's a circular or other irregular path, just choose any two that are decently far apart.


Around each path node, create a script area. Add an entity collide callback between the monster and each script area. When the monster collides with one area, run a function which adds patrol nodes leading to the OTHER area, and vice versa. This way, the monster will always be moving because it always has somewhere to go. Shouldn't be any issue if the player is seen by the monster, since it will return to its last path node and continue its scripted path when it stops hunting/searching for the player.

(This post was last modified: 03-31-2012, 09:54 PM by palistov.)
03-31-2012, 09:54 PM
Find


Messages In This Thread
Infinite Patroling - by RedMser - 03-31-2012, 06:30 PM
RE: Infinite Patroling - by Your Computer - 03-31-2012, 06:43 PM
RE: Infinite Patroling - by Damascus - 03-31-2012, 09:34 PM
RE: Infinite Patroling - by palistov - 03-31-2012, 09:54 PM
RE: Infinite Patroling - by ClayPigeon - 03-31-2012, 11:05 PM
RE: Infinite Patroling - by Your Computer - 03-31-2012, 11:45 PM



Users browsing this thread: 1 Guest(s)