(Formerly known as game.skipping_cutscene, which is now obsolete)
static bool Game.SkippingCutscene
Returns whether the player has elected to skip the current cutscene. This will return true
if the game is between a StartCutscene and EndCutscene command, and the player has chosen to
skip it.
Although cutscene skipping is handled automatically by AGS, you can use this property to optimise
the process by bypassing any lengthy blocks of code that don't need to be run if the cutscene is
being skipped over.
NOTE: This is a static function, and thus need to be called with Game. in front of it. See
the example below.
Example:
if (!Game.SkippingCutscene)
{
PlayMusic(64);
Wait(100);
StopMusic();
}
will only attempt to play the music if the player is not skipping the cutscene.
Compatibility: Supported by AGS 3.0.1 and later versions.
See Also: StartCutscene, EndCutscene,
Game.InSkippableCutscene
|