Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: timlump on Sat 06/05/2006 12:24:06

Title: Can i make a following character keep checking my position.(solved)
Post by: timlump on Sat 06/05/2006 12:24:06
In my game I noticed that when a NPC is told to follow they go to your last screen position before following again, how would I make them adjust their course as I move, since if I then tell them to stop following  they won't stop till they reach my last location.

Thanks if help can be provided.
Title: Re: Can i make a following character keep checking my position.
Post by: Ashen on Sat 06/05/2006 12:32:46
What have you got for the eagerness parameter when you start the following?

Quote from: The ManualEAGERNESS sets on average how long the character will stand around before checking if he needs to move again. Setting this to 0 means that he will always be on the move until he reaches CHARTOFOLLOW; setting this to 99 means that he will pause and think for a while on route. Values in between specify different lengths of idle time.

So, a lower eagerness should make them adapt to the PCs new position quicker.

Alternatively, what if you add a Character.StopMoving() command after you stop them following? (To stop them trying to reach the last known location.)
Title: Re: Can i make a following character keep checking my position.(solved)
Post by: timlump on Sat 06/05/2006 12:39:10
thanks I forgot about that.