Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: SilverWizard_OTF on Sat 14/08/2004 11:52:04

Title: Display messages are removed instantly
Post by: SilverWizard_OTF on Sat 14/08/2004 11:52:04
Hello
I was wondering if there is a way so standard messages  (for example messages that appear with an Display() script command) do not dissappear so fast. 
   I can see a global variable that does that to the speech                                 ( game.text_speech). Is there something like that for messages? Or a way to set a "style" for the messages  (dissolve, cross-fade e.t.c.)?

Thanks for your time
Title: Re: Display messages are removed instantly
Post by: Barbarian on Sat 14/08/2004 14:54:31
From the AGS Help Manual, I found a command that may help you:
"
game.text_speed 

How long speech text stays on the screen. Default 15, higher number means shorter time. "

and another command that may be of help:

"
game.bgspeech_game_speed 

If 0 (default), background speech stays on the screen for the same amount of time, no matter what the game speed. If 1, the amount of time it stays is relative to the game speed.  "

   And, another alternative (which I prefer for my own game I'm creating), is from the AGS Editor's General Settings, select "Skip Speech: Mouse or key (no auto remove)"  , that way the text won't dissapear from the screen untill the player click's or presses key to continue. This I find is a good choice in some ways because people read at different speeds, or some may want to skip a text-speech a lot quicker (for example, if it's something they already read before).

  Okay, hope something of that was of help to you.

Title: Re: Display messages are removed instantly
Post by: Ashen on Sat 14/08/2004 16:35:05
From the manual:
game.skip_display
Setting for how Display() messages are skipped; valid values are same as for SetSkipSpeech (default 3).

Now, value 3 means "text does not time-out; player must click mouse or press key each time", so I'm not sure why it's vanishing straight away, unless it's been interfered with by something else or you're accidentally double clicking. Anyway, try this in on_game_start:

game.skip_display = 2;

It'll mean text can't be skipped at all, which might get a little annoying, but no more than not being able to read the game messages.
Hope this is of some use.
Title: Re: Display messages are removed instantly
Post by: SilverWizard_OTF on Sat 14/08/2004 19:50:39
Yes, that helped, thanks both of you
Anyway, it would be nice if there was a way to choose a specific "style" for the text [e.g. Dissolve (Like Rooms have)].