Does a following character teleports in the room the player goes?

Started by eri0o, Sat 12/01/2019 13:14:48

Previous topic - Next topic

eri0o

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!

Crimson Wizard

Yes, this is expected behavior.

There is also this:
Code: ags

// delay before moving following characters into new room
game.follow_change_room_timer

eri0o

Wait, you mean

Code: ags

game.following_room_timer


right? I see it's an int, is it in ticks ?

Crimson Wizard

Yes, it's game.following_room_timer in script, but has different name in the engine.

I think it's in game ticks.


SMF spam blocked by CleanTalk