Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Montague on Thu 01/02/2007 09:10:18

Title: skip speech question
Post by: Montague on Thu 01/02/2007 09:10:18
I was wondering if it's possible to set skipspeech to skip on mouse click only (like option 3; that the text doesn't time out, except that pressing the keyboard doesn't skip speech. It has to do with keyboard movement).
Title: Re: skip speech question
Post by: GarageGothic on Thu 01/02/2007 09:45:10
I haven't tried this, but if you combine SetSkipSpeech(3) with game.skip_speech_specific_key(27), only mouseclick and ESC should be able to remove the text. If you don't want ESC to work either, you could try putting in a very high value, which isn't attached to any key.
Title: Re: skip speech question
Post by: Montague on Thu 01/02/2007 11:10:05
Thanks, I'll give it a try. (it's only the arrow keys that I don't want to skip speech, so esc will be fine).

EDIT: I get a parse error, I'll see if there's something wrong.
EDIT2: =27, not (27). Worked perfectly. Thanks!
Title: Re: skip speech question
Post by: Ashen on Thu 01/02/2007 11:12:33
I think using one of the 'special' keycodes:
Quote
403       Left shift
404       Right shift
405       Left ctrl
406       Right ctrl
407       Alt

Will disable any keypress from skipping speech. It used to, at any rate, and I don't see why it would've changed.