Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: DoorKnobHandle on Fri 17/10/2003 21:27:33

Title: Move Character at room change!?!
Post by: DoorKnobHandle on Fri 17/10/2003 21:27:33
Well, my problem:

I have a character (whooo!), which is walking through a door to another room in a cutscene.
The player is following that character.

So, I can set the player to new room coordinates by using:

NewRoomEx

But how can I use this func on not player characters?

Something like this, I thing:

player[3].x = 235;
player[3].y = 46;

how is that func exactly called? I couldnt find it in any helps/tutorials/forum postings...


thx!
Title: Re:Move Character at room change!?!
Post by: Spyros on Fri 17/10/2003 21:47:47
just after (or before) the NewRoomEx function
add this:
player[3].room= the number of the new room
player[3].x = 235;
player[3].y = 46;

where 3 is the non player char
Title: Re:Move Character at room change!?!
Post by: DoorKnobHandle on Fri 17/10/2003 21:48:36
cool!

as I thought!

thank you!
Title: Re:Move Character at room change!?!
Post by: Ishmael on Sat 18/10/2003 19:06:49
eh...  ;D character[CHARID] dot....
Title: Re:Move Character at room change!?!
Post by: Spyros on Sun 19/10/2003 09:21:54
Yes, my mistake