Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: on Sat 31/05/2003 18:47:39

Title: Character follows in all rooms
Post by: on Sat 31/05/2003 18:47:39
I want to have a character follow my player character through various rooms.  However, I've done lots of reading and the FollowCharacter and FollowCharacterEx commands seem to only work in the room the NPC was originally in.  Is there a way to make the Follow Character command work in all rooms until it is disabled?
Title: Re:Character follows in all rooms
Post by: Scummbuddy on Sat 31/05/2003 18:51:49
I believe it does work anyways, just as long as your character isnt so fast that it gets a room ahead of the other guy.
Title: Re:Character follows in all rooms
Post by: on Sat 31/05/2003 18:58:37
Well, I tried it, and it does not seem to work.  This might be an error with the new 2.55 version.  I'll try it on the old 2.54 version to see if that version makes it work in all rooms.

EDIT:  Well it worked in the old version, but I'll keep fiddling with the new version to get it to work.  Unfortunately I accidently saved the backup of the old version using the new editor, so now I can't even edit using the old version.  Oh well, guess I'm forced to use the new version now.  Unfortunately, the reason I thought it wasn't working is it takes like 5 seconds for the person to finally appear on the new screen.  I'll fiddle with the settings to see if I can't lessen that amount of time.
Title: Re:Character follows in all rooms
Post by: on Sat 31/05/2003 20:23:23
It takes almost exactly 3 seconds before the character appears in the next room.  The settings do not change the time it takes for the character to appear in the room.  Anybody have any ideas on how to shorten this time up?

Chris, do you know why it takes so long for this to occur?  Or is it just the way AGS works and can't be fixed?
Title: Re:Character follows in all rooms
Post by: Dorcan on Sat 31/05/2003 23:18:08
You just have to modify the game.following_room_timer variable.

From the manual :
game.following_room_timer
How long to wait before following char emerges in new room, default 150. (higher is longer).

Title: Re:Character follows in all rooms
Post by: on Sat 31/05/2003 23:28:07
Wow.  Thanks.  That saves me so much coding.  I must have missed it in the manual.