How to align text

Started by Kinoko, Thu 29/01/2004 03:47:00

Previous topic - Next topic

Kinoko

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.

Ishmael

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"...
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Kinoko

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 ^_-

SMF spam blocked by CleanTalk