Skipping text only on mouse click

Started by , Mon 07/06/2004 05:40:35

Previous topic - Next topic

Please help me!!

In my game I have made it so the player can move the character using the arrow keys. The problem is, if a dialog starts (triggered by the player moving to a certain place) and the player is holding down an arrow key, all the speech is instantly skipped. I need a way to make it so speech can only be skipped with the mouse, not with a key press, or a way to make set it so text can't be skipped while the arrow keys are held down. I've tried adding "game.skip_display=2;" to the ends of the script lines for using the arrow keys, and having another line saying if keycode does not equal an arrow key, game.skip-display=3; Please help if you can.

Tarlash

My hands are shaking...
I cannot concetrate...
I need AGS!!!

strazer

Or you can set that only a specific key can skip speech:

  game.skip_speech_specific_key = 'x';
or
  game.skip_speech_specific_key = 27; // ESC, don't know if that works

Still need help!

game.skip_speech_specific_key=x just gives me an error message. Where should I put it in the script? I put it in function game_start() In the manual, where it has an idex of the character. and game. variables, game.skip_speech_specific_key, isn't there.

Gilbert


Scorpiorus

#5
Quote from: Still need help! on Tue 08/06/2004 03:28:43In the manual, where it has an idex of the character. and game. variables, game.skip_speech_specific_key, isn't there.
It is only available since AGS 2.61

QuoteI've tried adding "game.skip_display=2;"
It tells how to skip Display-ed messages - not a speech text. See SetSkipSpeech() function in the manual for possible modes.

strazer

And be sure to enclose the key in '', like
  game.skip_speech_specific_key = 'x';

You can drop these if you use the key's ASCII value, e.g.
  game.skip_speech_specific_key = 88; // 88 is ascii code for x

SMF spam blocked by CleanTalk