Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: BerserkerTails on Sun 14/12/2003 03:17:50

Title: *STILL* having problems using game.swap_portrait... Help!
Post by: BerserkerTails on Sun 14/12/2003 03:17:50
I'm just learning how to use the Sierra Style dialog... But I'm having trouble swaping the potrait so it's located on the right side of the screen instead of the left. I know it has something to do with game.swap_portrait, unfortunatley I don't know how to use this command! Can anyone help me?

Thanks in advance!
Title: Re:Using game.swap_portrait... Help!
Post by: Scorpiorus on Sun 14/12/2003 16:26:36
Just place the game.swap_portrait  = 1;  somewhere (on game start for example)

from now AGS will swap the portrait images when different characters talk.

~Cheers
Title: Re:Using game.swap_portrait... Help!
Post by: BerserkerTails on Sun 14/12/2003 19:09:44
Is there anyway to make the portrait swapped for both characters? The action in the scene is on the left side, and half of the dialog completely covers the characters!
Title: Re:Using game.swap_portrait... Help!
Post by: Scorpiorus on Sun 14/12/2003 20:11:12
Well, the only way I know is to set game.swap_portrait = 2; but you need to set it before each new message:

swap_portrait = 2;
DisplaySpeech(EGO, ".....");
swap_portrait = 2;
DisplaySpeech(MAN, ".....");
swap_portrait = 2;
DisplaySpeech(EGO, ".....");
swap_portrait = 2;
DisplaySpeech(MAN, ".....");

it's just a trick :P

~Cheers
Title: Re:*STILL* having problems using game.swap_portrait... Help!
Post by: BerserkerTails on Mon 15/12/2003 00:21:00
Scorpiorus: Thanks alot, that helped. Now I'm having another problem though.

The dialog picture I've imported has the character facing right. Now when the dialog picture is on the left side, this is fine... Unfortunatley, when the dialog picture is on the right, it still faces right. I figured, that besides adding "swap_portrait = 2" before messages in which I want the picture to appear on the right, I'd change the character's talking view to a different view in which the dialog picture is flipped to face left. But this didn't work! The picture still faces right! Why is that?

I don't want to upload another dialog picture in which the character is facing right because the dialog pictures do take up alot of space.
Title: Re:*STILL* having problems using game.swap_portrait... Help!
Post by: Scorpiorus on Mon 15/12/2003 11:13:44
I think AGS just doesn't support flipped frames with the sierra-style speech. :P Or it is supposed to support?!  ::)