Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: deedee on Sun 22/02/2004 23:37:57

Title: Moving an NPC to a room
Post by: deedee on Sun 22/02/2004 23:37:57
I'd like to know if there is a way to move a NPC to a specific room and specific room coordinates.
Title: Re:Moving an NPC to a room
Post by: Scorpiorus on Mon 23/02/2004 00:19:38
Put in use appropriate global variabls.

The following lines...

character[NPC].x = 100;
character[NPC].y = 200;
character[NPC].room = 4;

will move NPC to room 4, x=100 and y=200.

~Cheers