Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Akumayo on Sun 04/12/2005 23:16:52

Title: Problems with Follow Character (SOLVED)
Post by: Akumayo on Sun 04/12/2005 23:16:52
As the subject says, I am having trouble with the follow character function in a few ways.

Here's the problem:
I have (currently) two playable characters.Ã,  An interaction that involves talking to a woman, will first manually change the player to character1, then manually change player to character2, and then change player manually back to character1 again.Ã,  The problem is, because of the slowness it takes for a following character to reach a new room, I get an error saying I requested a room change to room -68 (weird...)Ã,  Anyway, I know there are ways to get around this, like stopping the interaction until the second character and the first character have matching current room values, but I would like to know how to simply stop the delay the following character has before entering the player's new room.Ã,  Is there a way to do this?

-Regards, Akumayo
Title: Re: Problems with Follow Character
Post by: Ashen on Sun 04/12/2005 23:57:26
Quote from: The Manualgame.following_room_timer
How long to wait before following char emerges in new room, default 150. (higher is longer). 

It's kind of hidden away, but it's there, I promise. Just set it in game_start, or when you call FollowCharacter. 0 would presumaly be instant follow, but you can play with different values to get what you want.
Title: Re: Problems with Follow Character
Post by: Akumayo on Sun 04/12/2005 23:58:49
Wow, thanks Ashen, how do you know all of this anyway?

EDIT:  Just tested it, character now jumps into the room almost instantly!  Thanks again Ashen!  I thought I would never get around that.