Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Nahuel on Mon 24/10/2022 12:36:24

Title: [workaround] Make a character speak really really fast
Post by: Nahuel on Mon 24/10/2022 12:36:24
Hey there everyone, I'm trying to create a character that sometimes, speak really fast.

I was testing using

  Game.TextReadingSpeed = 700;
  Game.MinimumTextDisplayTimeMs = 1;

But I would like to get the succession of words when trying to clarify that something is "cheap" but in reality is not like ("Well", "Not" "That", "Cheap") those 3 words, separated but super fast displayed
But each text displayed takes 1 second and I would like to have it in 500ms each or even 200ms.

The idea is to accomplish a very fast speaker character for (reading the small lines of a contract really fast so you can miss out some keys for that dialogue.

Any ideas how to accomplish that?

Thanks!

Title: Re: Make a character speak really really fast
Post by: arj0n on Mon 24/10/2022 12:59:42
you have set: Game.MinimumTextDisplayTimeMs = 1;
but this should be Game.MinimumTextDisplayTimeMs = 500;  // or 200, as 1000 = 1 second
Title: Re: Make a character speak really really fast
Post by: Nahuel on Mon 24/10/2022 13:15:00
Quote from: arj0n on Mon 24/10/2022 12:59:42you have set: Game.MinimumTextDisplayTimeMs = 1;
but this should be Game.MinimumTextDisplayTimeMs = 500;  // or 200, as 1000 = 1 second

But I want the speech to disappear almost instantly. That does not change much the text display delay.  :-\
Title: Re: Make a character speak really really fast
Post by: arj0n on Mon 24/10/2022 13:21:53
you might want to change the player.SpeechAnimationDelay to a lower number too.
Title: Re: Make a character speak really really fast
Post by: Nahuel on Mon 24/10/2022 13:50:36
Done that also change to 1 but makes no difference, I think the delay of the text (character letter displayed is calculated to wait a minimum time) because it's taking at least 1 sec per word for each ("Well", "Not" "That", "Cheap")  ???
Title: Re: Make a character speak really really fast
Post by: Crimson Wizard on Mon 24/10/2022 14:09:25
According to the engine code, AGS calculates text display time as "time based on TextReadingSpeed" + 1 second. This extra 1 second is always there, regardless of whether text display time is smaller or larger.
Therefore you won't be able to achieve this using Game.TextReadingSpeed.

This may be achieved using SayBackground or custom overlays perhaps (combined with manually animating speech if necessary).
Title: Re: Make a character speak really really fast
Post by: Nahuel on Mon 24/10/2022 14:23:28
Okay I will try to achieve this with another view plus animate + throwing sayBackground lines and Wait(10)

Cheers
Title: Re: Make a character speak really really fast | [workaround]
Post by: AndreasBlack on Mon 24/10/2022 15:31:39
try add short empty ogg speech files to the text, the text stays on screen as long as the speech files play, if i'm not mistakening.
Title: Re: Make a character speak really really fast | [workaround]
Post by: Crimson Wizard on Mon 24/10/2022 15:54:09
Quote from: AndreasBlack on Mon 24/10/2022 15:31:39try add short empty ogg speech files to the text, the text stays on screen as long as the speech files play, if i'm not mistakening.

The players can turn the voice speech off in setup.