Leaving the Main Character for a Cutscene; "Meanwhile..."; (SOLVED)

Started by , Mon 08/01/2007 10:59:50

Previous topic - Next topic

Gibbage

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

Akatosh

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:
Code: ags

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:
Code: ags

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


And that's it  :)

Gibbage


SMF spam blocked by CleanTalk