Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: beomoud on Mon 05/11/2007 11:09:45

Title: Help with NPC walking back and forth
Post by: beomoud on Mon 05/11/2007 11:09:45
I am working on a new RPG and although i have adressed several challenging script issues i don't seem to be able to make an NPC walk left, then right, then left and so on, repeatedly until someone speaks to.

When i give him the command to walk left and then right he only walks right and when i put this command in repeatedly execute it jams, i could solve the problem by adding eBlock (wait for move to finish: true) but then i would block my script thus not allow my player character to do anything.

I want to have my NPCs walk left and right in the background so that the setting seems alive.

Can anyone give me any scripting hints? It's a simple question i guess but it looks really overwelming to me, thanks
Title: Re: Help with NPC walking back and forth
Post by: Ashen on Mon 05/11/2007 11:33:38
Read the Manual (http://www.adventuregamestudio.co.uk/manual/Character.AddWaypoint.htm), and try searching the forum (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=31203.0) for more details. However, if you're wanting it to happen a lot, which it sounds like you are, the CharcaterControl module (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=28821.0) might be a better solution.