Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Mon 08/01/2007 10:59:50

Title: Leaving the Main Character for a Cutscene; "Meanwhile..."; (SOLVED)
Post by: on Mon 08/01/2007 10:59:50
I'd like to trigger a "Meanwhile..." event where the player character stays in his current room and x, y coordinates, and the screen fades to a different room where a couple of NPCs are having a conversation. When they've done that, we return to the player character and the original room.

As far as I can tell, the displayed room is always the one with the player character in it, no? I'd rather not move him to an offscreen position with ChangeRoom(), as that feels like extraordinarily dodgy code to me, but it's the only way I can think to do it at present...

Any advice??

Dan

--
www.gibbage.co.uk
Title: Re: Leaving the Main Character for a Cutscene; "Meanwhile..."
Post by: Akatosh on Mon 08/01/2007 11:06:19
Just make one character in the other room the player character for the duration of the cutscene. For example:

Room with the actual PC in:

cEgo.Say("Man, good thing they didn't throw snakes through the open window of my house!");
Display("Meanwhile...");
FadeOut(1);
cOtherGuy.SetAsPlayer();


Cutscene Room:

//your cutscene here
FadeOut(1);
cEgo.SetAsPlayer();


And that's it  :)
Title: Re: Leaving the Main Character for a Cutscene; "Meanwhile..."
Post by: on Mon 08/01/2007 14:01:45
Works like a charm. Many thanks.