SOLVED: Check if Cutscene has been skipped.

Started by Slasher, Fri 04/10/2013 08:12:53

Previous topic - Next topic

Slasher

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

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





Crimson Wizard

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

function repeatedly_execute_always() {
  if (Game.SkippingCutscene) {
    // do something
  }
}

Slasher


SMF spam blocked by CleanTalk