Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: eri0o on Sat 12/01/2019 13:14:48

Title: Does a following character teleports in the room the player goes?
Post by: eri0o on Sat 12/01/2019 13:14:48
I have a room that when you go to the left edge, the player teleports to a different room. A character was following my player character in the first room. Two seconds later  the following character appeared in the second room!

Is this expected behavior?

Edit: apparently I coded a function to do this while I was sleeping and forgot it, nevermind.

Edit2: apparently no, I didn't... Damn, can't figure out how the character is following the player on other rooms!
Title: Re: Does a following character teleports in the room the player goes?
Post by: Crimson Wizard on Sat 12/01/2019 14:26:46
Yes, this is expected behavior.

There is also this:
Code (ags) Select

// delay before moving following characters into new room
game.follow_change_room_timer
Title: Re: Does a following character teleports in the room the player goes?
Post by: eri0o on Sat 12/01/2019 18:09:17
Wait, you mean

Code (ags) Select

game.following_room_timer


right? I see it's an int, is it in ticks ?
Title: Re: Does a following character teleports in the room the player goes?
Post by: Crimson Wizard on Sat 12/01/2019 18:44:44
Yes, it's game.following_room_timer in script, but has different name in the engine.

I think it's in game ticks.
Title: Re: Does a following character teleports in the room the player goes?
Post by: eri0o on Sat 12/01/2019 21:22:39
nice! It's indeed in ticks! Added to the manual adventuregamestudio.github.io/ags-manual/Character.html (https://adventuregamestudio.github.io/ags-manual/Character.html#followcharacter) !