Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: joelphilippage on Tue 08/05/2007 23:10:35

Title: skipping loading
Post by: joelphilippage on Tue 08/05/2007 23:10:35
Is there a way that I could make a key such as escape cause the game to skip any waiting sequences? So if the character is animating with blocking style or something similar, it will skip over it.
Title: Re: skipping loading
Post by: Khris on Tue 08/05/2007 23:13:33
Look up StartCutscene() and EndCutscene().
Title: Re: skipping loading
Post by: joelphilippage on Tue 08/05/2007 23:23:18
I know those commands but I would like something throughout the whole game so if the wait command is used you can skip it.
Title: Re: skipping loading
Post by: Ashen on Tue 08/05/2007 23:42:24
It depends what exactly you want it for, but there's a couple of options in the manual.
There's SkipUntilCharacterStops (http://www.adventuregamestudio.co.uk/manual/SkipUntilCharacterStops.htm), but that's only good for movement, not animation. You could also try WaitKey (http://www.adventuregamestudio.co.uk/manual/WaitKey.htm) (and/or WaitMouseKey) for a skippable Wait alternative but again I don't think that's much use for skipping animations. It might be possible to code SkipUntilObject/Animation/WhateverStops-type command, but I think using a lot of Start/EndCutscene commands is the easiest way to go.
Title: Re: skipping loading
Post by: joelphilippage on Wed 09/05/2007 00:04:03
OK then. thanks for the help. I just made my own commands for start and end cutscene so it so I just have to put start(); before and stop(); after to make things quicker.