Assign voice to text overlay functions

Started by Le Woltaire, Thu 01/03/2007 11:23:24

Previous topic - Next topic

Le Woltaire

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.



SSH

#1
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
12

SMF spam blocked by CleanTalk