Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
cdaz

Sorry for a silly question but how to set text alignment ?

Question

I think i can do it a long time ago while I still try demo version.

 

But i can't find the way to do it now.

(Or maybe I used Script or VX that time)

 

I search forum and google and found this topic

http://www.gdunlimited.net/forums/topic/8399-requesting-script-for-centering-text/

 

But I don't know how to use it. did i need to Call Script or Just "\" or something like that?

 

Ps. I use dubealex AMS for my text Script. did it has any command to do this?

Edited by cdaz

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

As I posted in the previous page you linked to:

self.contents.draw_text(x, y, width, height, text, align)

x- coordinate
y- coordinate
w - width size
h - eight size
text - your message
align - 0 (right) 1 (center) 2 (left)

You will need to add this code where ever you plan on adding text in your game. What exactly are you trying to edit?

Share this post


Link to post
Share on other sites
  • 0

As I posted in the previous page you linked to:

self.contents.draw_text(x, y, width, height, text, align)

x- coordinate
y- coordinate
w - width size
h - eight size
text - your message
align - 0 (right) 1 (center) 2 (left)

You will need to add this code where ever you plan on adding text in your game. What exactly are you trying to edit?

Thank you.I just want to set some Text to center alignment on tutorial message or Mission Briefing . Like Megaman Legend games.

Youtube Video ->
Edited by cdaz

Share this post


Link to post
Share on other sites
  • 0

Thank you.I just want to set some Text to center alignment on tutorial message or Mission Briefing . Like Megaman Legend games.

 

I would recommend what zahraa linked, the UMS. It's extremely useful, you just have to read the directions for what you want and then copy and paste the correct script into the Script event command... super easy.  I believe the script to center for the UMS was $game_system.window_justification=center or something. But if you want to use that, you need the script.

 

Check out zahraa's link, because seriously the UMS is amazing and gives so many options to customise easily.

Share this post


Link to post
Share on other sites
  • 0

Thank you very much.

I like to use UMS too.

 

But just a little problem I can't find the Edited version of this script to supported my language(Thai)

And Most of Thai RPG MAKER community are gone. I found AMS  on very old web board.

And I lack of skill to edited it myself.

 

In my language there are some character show above another.

with out edited script it will show only horizon text.

But thank for advising I will try to find one.

Edited by cdaz

Share this post


Link to post
Share on other sites
  • 0

Thank you very much.

I like to use UMS too.

 

But just a little problem I can't find the Edited version of this script to supported my language(Thai)

And Most of Thai RPG MAKER community are gone. I found AMS  on very old web board.

And I lack of skill to edited it myself.

 

In my language there are some character show above another.

with out edited script it will show only horizon text.

But thank for advising I will try to find one.

 

I see. I hope you can find someone to help you out! I'll ask around and see if I know anyone outside of the forums who can help edit it. :P

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...