Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: SilverSpook on Thu 17/03/2016 07:14:03

Title: Setting Sierra Portrait Location In Game?
Post by: SilverSpook on Thu 17/03/2016 07:14:03
Is there a way to change the portrait location of Sierra-style portraits in-game?  For example, if the game at the start is set to show Sierra portraits "Based On Character Position" would it be possible to force the portraits to appear on the left side of the screen for a certain dialog?

Thanks
Title: Re: Setting Sierra Portrait Location In Game?
Post by: Cassiebsg on Thu 17/03/2016 16:05:33
Don't know if it's possible, but you could probably "fake" it, by using a dummy character for the speech without portrait animation and then just animate the portrait view you want where you want it... food for thought? ;)
Title: Re: Setting Sierra Portrait Location In Game?
Post by: SilverSpook on Thu 17/03/2016 21:48:50
Thanks for the suggestion.  :)

The way I've done it so far is to make an invisible clone of the character, and then position the invisible clone all the way to the left of the screen to make sure the portrait shows up on the left side of the screen.  This works with "Portraits based on character position" setting anyway.  Mainly the issue is there are a few times where a portraits takes up screen real estate that needs to be seen while the char is talking (object they're talking about, other char, etc.)
Title: Re: Setting Sierra Portrait Location In Game?
Post by: Gurok on Thu 17/03/2016 23:22:26
You can control the portrait position setting in-game using the OPT_PORTRAITPOSITION game option:

SetGameOption(OPT_PORTRAITPOSITION, 0); // Portraits on the left
SetGameOption(OPT_PORTRAITPOSITION, 1); // Portraits on the right
SetGameOption(OPT_PORTRAITPOSITION, 3); // Portraits based on character position
Title: Re: Setting Sierra Portrait Location In Game?
Post by: SilverSpook on Sat 19/03/2016 08:37:48
You win at AGS, my friend!  Thanks so much I would've never found that!