Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: barefoot on Fri 26/11/2010 10:16:37

Title: Different text display guis
Post by: barefoot on Fri 26/11/2010 10:16:37
Hi

Iv'e been trying to find out if/how i could have a different text display box gui for each character.

I have one text gui box for all displays but would like to have 2, one for each character...

This is mainly because I cannot find suitable colors that dont clash with the background.

cheers
barefoot




Title: Re: Different text display guis
Post by: Khris on Fri 26/11/2010 10:26:10
You can change game.speech_text_gui during the game.

Problem is, there's no way to implement that change for existing .Say lines.

The best way is to use an Extender funtion:
function MySay(this Character*, String text) {
  if (this == cindy_bones) game.speech_text_gui = 2;
  else game.speech_text_gui = 4;
  Display(text);
}
Title: SOLVED: Re: Different text display guis
Post by: barefoot on Fri 26/11/2010 11:50:39
Thanks Khris, I'll look into that solution..

barefoot