Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Le Woltaire on Thu 01/03/2007 11:23:24

Title: Assign voice to text overlay functions
Post by: Le Woltaire on Thu 01/03/2007 11:23:24
By mistake I assigned a &number at the beginning of a text overlay.
It got ignored by the script as well and wasn't displayed in the game.

So I wondered: Is there a possibility to assign a voice to a text overlay in AGS v2.62?

If so, what character should it be assigned to.
I've already tried the game.narrator_speech variable.
Title: Re: Assign voice to text overlay functions
Post by: SSH on Thu 01/03/2007 11:45:33
Not directly, but you can try:

Overlay *fred=Overlay.CreateTextOverlay(etc.);
cSomeChar.Say("&15                             ");

where somechar is a dummy character you want to use for this. I think best not to use narrator, because then there is special handling for it... make the number of spaces in the Say the same as the length of your text, so that the auto-length   calculation thing works