Can I center text?

This forum is meant for posting anything related to Adventure Maker that doesn't fit in the other forums.Please post technical questions in the Technical Support Forum!

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

Can I center text?

Postby Bzyk » Fri Jun 08, 2007 6:15 am

Hello, Friends,

is there any possibility to center or justify simple text on the screen (just like the answers in dialogue)? For now we can input text, change its color and font, but it is all about its format.
Attachments
game.jpg
game.jpg (230.71 KiB) Viewed 2861 times
Luminous beings are we, not this crude matter...
User avatar
Bzyk
Frequent Poster
 
Posts: 142
Joined: Sat Feb 17, 2007 9:49 pm
Location: Poland

Postby GM-Support » Fri Jun 08, 2007 2:01 pm

Hi Bzyk,

Just put the following code under the "Advanced" tab of the Frame Properties:

Code: Select all
Text(1).Alignment = X


where you must replace X with either 1, 2 or 3:

1 for left alignment
2 for right alignment
3 for center alignment

Best regards,
GM-Support :)
GM-Support
Forum Admin and Games Page admin
 
Posts: 2221
Joined: Thu Jun 05, 2003 7:52 pm

Postby Bzyk » Sat Jun 09, 2007 11:06 am

Oops, it seems it doesn't work. With "3" there is some error:
Attachments
error.jpg
error.jpg (27.17 KiB) Viewed 2842 times
Luminous beings are we, not this crude matter...
User avatar
Bzyk
Frequent Poster
 
Posts: 142
Joined: Sat Feb 17, 2007 9:49 pm
Location: Poland

Postby Bzyk » Sat Jun 09, 2007 11:18 am

OK, I got it.

Left - without scripting.
Right = 1.
Center = 2.

:D
Luminous beings are we, not this crude matter...
User avatar
Bzyk
Frequent Poster
 
Posts: 142
Joined: Sat Feb 17, 2007 9:49 pm
Location: Poland


Return to Adventure Maker General Discussion

Who is online

Users browsing this forum: Bing [Bot] and 3 guests

cron