Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: lemmy101 on Fri 05/01/2007 02:39:59

Title: Detecting whether we are skipping a cutscene (SOLVED)
Post by: lemmy101 on Fri 05/01/2007 02:39:59
Hullo! A quick question about the StartCutscene/EndCutscene commands in AGS.

Is there any way we could detect whether AGS is currently skipping a cutscene from within AGS script itself? In our plug-in we've had to cater for skipping cutscenes with the escape key, but currently we have no way of detecting if the AGS script is currently skipping or playing as normal. It would be cool to be able to start our conversation engine skipping if a conversation was triggered by AGS script while AGS was skipping a cutscene.

If not I'm sure we can work around it, was just curious if there was any way to detect this.

Much appreciated!

L&B
Title: Re: Detecting whether we are skipping a cutscene
Post by: strazer on Fri 05/01/2007 02:45:32
Are you looking for this?

game.skipping_cutscene  (http://www.adventuregamestudio.co.uk/manual/Globalvariables.htm) - Set to 1 if a cutscene is currently being skipped over rather than played normally.
Title: Re: Detecting whether we are skipping a cutscene
Post by: lemmy101 on Fri 05/01/2007 02:47:03
W00t! Thou art a star!

Thanks strazer!
Title: Re: Detecting whether we are skipping a cutscene
Post by: strazer on Fri 05/01/2007 02:49:33
My pleasure! :)