Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: kinan___rod on Thu 03/09/2015 17:52:33

Title: What is an easy way to make a text box instead of showing text above characters?
Post by: kinan___rod on Thu 03/09/2015 17:52:33
Hi, what is the best way to create a text box for all spoken text instead of showing it above characters? I still want to use lucasarts style because I want the speaking animation to remain there, thanks in advance!
Title: Re: What is an easy way to make a text box instead of showing text above characters?
Post by: Slasher on Thu 03/09/2015 20:45:00
The way I just did it is by having a bar (an object 40h x room width) across the top of the screen and using SayAt to display on top of the object bar at x, y + length.

This way the text will display on and across the bar.

Example:
Code (ags) Select
  cJones.SayAt(6, 71, 640, " \"The professor has not been seen in two months.\" ");


Example in action:

(http://i1181.photobucket.com/albums/x423/qikfire/Pyramid_gip_zpsrcqkhojm.png)

You can of course have the image of the top bar as you want.

others may have other ways..

Title: Re: What is an easy way to make a text box instead of showing text above characters?
Post by: Monsieur OUXX on Fri 04/09/2015 09:23:06
There is no default "custom dialog box". Unfoirtunately I don't know if there's a module that does that.
But it's not too hard; you can use slasher's methid, or you can create a custom gui to display the text, etc. Just make sure you replace the default "Say" method with your own -- that I'm sure you'll find forum posts that deal with this topic.