Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Kinoko on Thu 29/01/2004 03:47:00

Title: How to align text
Post by: Kinoko on Thu 29/01/2004 03:47:00
I'm currently using CreateTextOverlay to create some text, but is there any way I can align it centrally? I -could- probably go to all the trouble of creating the second line of text as a seperate overlay and manually centring it ..... but I really don't wanna have to do that.
Title: Re:How to align text
Post by: Ishmael on Thu 29/01/2004 05:12:57
there is the game.text_align global variable for setting the alignment of text box text. AFAIK overlays are always centered, as is speech, at the point where the charcter is, or, if it is near the edge of the screen, the edge of the text is on the screen border, and the text is centered in it's own "box"...
Title: Re:How to align text
Post by: Kinoko on Fri 30/01/2004 00:34:03
Ah, thanks. I really didn't expect game.text_align to work but it did. It's not supposed to affect Lucasarts style text but I guess overlays must work differently. My speech text was always fine, it was just overlays that insisted on being different. Anyway, thanks. Another problem solved by TK ^_-