Change room if you do click or not

Started by pakolmo, Mon 28/11/2016 03:10:02

Previous topic - Next topic

pakolmo

I have a  StartCutscene(eSkipAnyKeyOrMouseClick); with EndCutscene();

I want go to different room if I did mouse click or I was waiting the cutscene.
For click: Room 3
Without click: Room4

Gurok

You can check to see whether the cutscene is being skipped before it ends:

Code: ags
bool skipped;

StartCutscene(eSkipAnyKeyOrMouseClick);
/*
.
. Your cutscene code
.
*/
if(Game.SkippingCutscene)
    skipped = true;
EndCutscene();
/* ... */
if(skipped)
    player.ChangeRoom(3);
else
    player.ChangeRoom(4);


Note: This will also take the player to room 3 if the player pressed a key to skip the cutscene. You didn't mention key presses, so I'm not sure if that was what you were after.
[img]http://7d4iqnx.gif;rWRLUuw.gi


SMF spam blocked by CleanTalk