Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Intangible on Fri 03/06/2011 13:45:59

Title: Override AGS speech delay for specific occasions
Post by: Intangible on Fri 03/06/2011 13:45:59
I see that AGS offers Game.TextReadingSpeed and Game.MinimumTextDisplayTimeMs as means to control how quickly the speech delay elapses. Is there any way to control the speech delay on a case-by-case basis? I don't need to do it all the time, of course, but there are a couple of specific cases where I might want the speech delay to happen faster than it normally, basically for comedic effect.

Is there a mechanism for this, or should I just change Game.TextReadingSpeed/Game.MinimumTextDisplayTimeMs for the one speech and then change them back right afterward?
Title: Re: Override AGS speech delay for specific occasions
Post by: barefoot on Fri 03/06/2011 14:07:01
Hi

simply put in the text display delay code where you want it to happen and then return delay code once finished..

Eg:  

Game.TextReadingSpeed = 7;

This sets the text reading speed to half the default, which will leave speech on-screen for twice as long as usual.


barefoot

Title: Re: Override AGS speech delay for specific occasions
Post by: Intangible on Fri 03/06/2011 23:38:59
Okay, that should work.