Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Slasher on Fri 04/10/2013 08:12:53

Title: SOLVED: Check if Cutscene has been skipped.
Post by: Slasher on Fri 04/10/2013 08:12:53
Hi,

would you help me please.

What would be the best way to check if a Cutscene has been skipped? You use Esc to skip.

cheers

EDIT:

Just seen this by Khris so will try something with it:

Code (ags) Select

function repeatedly_execute_always() {
  if (Game.InSkippableCutscene && IsKeyPressed(eKeyEscape)) {
    Display("You tried to skip.");
  }
}




Title: Re: SOLVED: Check if Cutscene has been skipped.
Post by: Crimson Wizard on Fri 04/10/2013 08:42:37
Are you are implementing manual skipping control?

Unless your cutscene is made in an unusual way, you might be using StartCutscene and EndCutscene to mark the begining and ending of cutscene.
In StartCutscene you define the key which skips the cutscene. In this case the cutscene will skip automatically, if the player hits the button.

Then, if at some point you want to know if cutscene is being skipped by player, use Game.SkippingCutscene.
Code (ags) Select

function repeatedly_execute_always() {
  if (Game.SkippingCutscene) {
    // do something
  }
}
Title: Re: SOLVED: Check if Cutscene has been skipped.
Post by: Slasher on Fri 04/10/2013 11:12:56
Cheers Crimson,

all is under control (laugh)