Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: milkanannan on Sat 09/04/2005 03:36:44

Title: Dialog positioning [SOLVED]
Post by: milkanannan on Sat 09/04/2005 03:36:44
Hello - I've searched the forums and the manual but can not find a solution to this problem.  I am using Lucas Arts style dialog and was wondering if there is some way to position it in a particular area of the screen i.e. (EGO, x, y)

Any help greatly appreciated
Title: Re: Dialog positioning
Post by: strazer on Sat 09/04/2005 03:41:34
DisplaySpeechAt (see manual)
Title: Re: Dialog positioning
Post by: milkanannan on Sat 09/04/2005 03:48:03
thanks strazer, must've missed that in my searching
Title: Re: Dialog positioning
Post by: strazer on Sat 09/04/2005 03:56:21
Quote from: hello123 (via pm)sorry to bug you, strazer, but DisplaySpeechAt does not seem to be in the manual.  I can only find DisplaySpeech

It's in my v2.62 manual, directly after the entry for DisplaySpeech. Which version of AGS are you using? In AGS v2.7, it's called Character.SayAt
Title: Re: Dialog positioning
Post by: milkanannan on Sat 09/04/2005 04:24:47
v2.61

I would like my main character's dialog to ALWAYS be at a specific coordinates (at the bottom of the screen).  Any suggestions how to do that?  I can't seem to use DisplaySpeechAt when programming dialogs

thanks
Title: Re: Dialog positioning
Post by: strazer on Sat 09/04/2005 04:44:50
Quote from: hello123 on Sat 09/04/2005 04:24:47I can't seem to use DisplaySpeechAt when programming dialogs

That's true.
You could script your own dialog system, but I don't know of any easy, practical solution.
A request for a similar feature (http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=156) was made already, so be sure to add a comment and show your support.
Title: Re: Dialog positioning
Post by: milkanannan on Sat 09/04/2005 04:45:27
will do, thanks alot!
Title: Re: Dialog positioning
Post by: strazer on Sat 09/04/2005 04:57:02
I just read your comment.
Since you're making a first-person perspective game, you could just position a dummy character at the very bottom-left, outside the screen.
This way, his speech will be displayed in the lower-left corner of the screen.
Title: Re: Dialog positioning
Post by: milkanannan on Sun 10/04/2005 06:15:42
hey strazer, i've actually been trying that but unfortunately, the text will not go any lower than a certain point (not low enough).  the dummy character is really small, too so I don't understand why this is happening
Title: Re: Dialog positioning
Post by: strazer on Sun 10/04/2005 21:02:24
If I remember correctly, when a character is outside the screen, his speech overlay will be aligned to the screen edge he is closest to. It doesn't matter if he is big or small, he just has to be completely outside the visible screen area.
Try setting his y-coordinate to 1000 or something.
Title: Re: Dialog positioning
Post by: milkanannan on Mon 11/04/2005 01:11:22
coincidence - i just tried it and it worked!  thanks for the suggestion, you're a genius ;D
Title: Re: Dialog positioning
Post by: strazer on Mon 11/04/2005 01:17:22
Glad I could help. :)