Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Superman95 on Sun 21/12/2003 20:49:26

Title: KQ's dialog
Post by: Superman95 on Sun 21/12/2003 20:49:26
Okay,

After playing with the dialog stuff a lot.  I can't figure out how tierra made the portaits trade places when the dialog goes back and forth between 2 characters.  I'm sure I could do this with a brute force approach and not use the dialog engine, but this should be easier.

Any suggestions?
Title: Re:KQ's dialog
Post by: Scorpiorus on Sun 21/12/2003 22:26:55
Yeah, it's a built-in feature. Check out the game.swap_portrait global variable.

manual:
QuoteSet to 1 to make sierra-style speech swap the portrait image from left to right when different people talk.

~Cheer
Title: Re:KQ's dialog
Post by: Superman95 on Sun 21/12/2003 22:39:04
Thanks, that's awesome.
Title: Re:KQ's dialog
Post by: Superman95 on Mon 22/12/2003 15:56:51
Oh, one other thought.

It would be pretty cool to add a command to let you set this from inside the dialog engine.  that way you would haven't to call a script function between each character.  You could just toggle this value back and forth.

Just a thought.
Title: Re:KQ's dialog
Post by: TerranRich on Mon 22/12/2003 17:12:04
What? Did you even try it? It's supposed to automtically do it for you when it's set to 1. When it's 0, it stays on one side.
Title: Re:KQ's dialog
Post by: Superman95 on Mon 22/12/2003 20:39:52
hmmmm....I think I misunderstood.  I need to be slapped.  Sometimes I miss the obvious.