Text box image

Started by , Thu 15/03/2007 17:28:22

Previous topic - Next topic

bowtolaura

Hi!

   As I have said before I am a real novice with working with AGS, so if I am not using the right terminology or scripting please feel free to correct me!
   Right now I am working on my first game (which will be a birthday gift) and I am editing the dialog text box. I am using the Sierra portrait style and I wanted to change the image of the main character (EGO) that is to the left of the conversation  topics. How can I do this?
   I hope I have made myself clear enough, let me know if I should elaborate.

Sincerely,
Bowtolaura
   

Ashen

If you're just using the default Sierra-style speech, that image is the Character's Speech View. To change the image, just change the Speech View with the Character.SpeechView property. E.g.:
Code: ags

cEgo.SpeechView = 10;
cEgo.Say("Hello.");
cEgo.SpeechView = 15;
cEgo.Say("Hello again.");


Unfortunately, you'll need to have a whole view for each differnt portrait, as it can only use the first Loop for Sierra-style speech.
I know what you're thinking ... Don't think that.

bowtolaura

Hi Ashen,

   Solved again! Thanks! If it wasn't for this forum I wouldn't be making this game, that's for sure.

Sincerely,

Bowtolaura

SMF spam blocked by CleanTalk