Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Tue 02/12/2003 01:04:14

Title: Setting a walkto point for objects
Post by: on Tue 02/12/2003 01:04:14
How do you make a character walk to an item before picking it up?
Title: Re:Setting a walkto point for objects
Post by: Quintaros on Tue 02/12/2003 02:40:02
Use a MoveCharacter command to specify the coordinates.
Title: Re:Setting a walkto point for objects
Post by: Timosity on Tue 02/12/2003 03:53:52
you can also either set a hotspot walk to point, or a MoveCharacterToObject, or MoveCharacterToHotspot (you need to set the walk to point for this one)

if you use MoveCharacter you will need to have a wait command before you do anything else

eg.

MoveCharacter(EGO,150,100);
while (character[EGO].walking) Wait(1);

Have a look at these commands in the help file that comes with AGS, this will help you with every command.

hope it helps

~Tim