Scrolling Text

Hi ^_^

How would one make the scrolling text move to the centre? It is kind of annoying when it is to the left as everything in the centre would look better in my opinion. I use YEP_MessageCore if that would help to centre it... I have Google searched and searched on here, but I can't find a solution, aha. XD

Thanks, any help is appreciated!
Window_ScrollText uses drawTextEx to render text, so you can't, until someone finds a way to add alignment to that method (which is a lot harder, than it sounds).
I always use spaces in the text box until my words were moved over far enough to be centered (it took some play testing to tweak it back and forth unail I got it how I liked it) but I wasn't using yanfly message core.. but I DID install it last night, so now I need to go back and make sure all my scrolly text is still centered lol.

Probably not the most helpful comment, sorry, but I'll be watching this thread incase someone does post a solution, so if I have the same problem I'll know how to fix it too!
Window_ScrollText uses drawTextEx to render text, so you can't, until someone finds a way to add alignment to that method (which is a lot harder, than it sounds).
Ah, OK XD I will probably try and make a movie with text then and maybe have it play it... I've never used that function before but I can do some exploring. Thank you 🙂

I always use spaces in the text box until my words were moved over far enough to be centered (it took some play testing to tweak it back and forth unail I got it how I liked it) but I wasn't using yanfly message core.. but I DID install it last night, so now I need to go back and make sure all my scrolly text is still centered lol.

Probably not the most helpful comment, sorry, but I'll be watching this thread incase someone does post a solution, so if I have the same problem I'll know how to fix it too!
Yeah, I had that idea but I wasn't sure if that would then look odd if other people played the game on a different browser, or would it automatically stay in the same place? XD So I was a bit reluctant to try it that way... but hopefully someone will come up with a solution at some point ^_^ I would but, even if I know a bit of JS, it isn't enough to edit the code myself >.>

Thanks both ^_^
Hi ^_^

How would one make the scrolling text move to the centre? It is kind of annoying when it is to the left as everything in the centre would look better in my opinion. I use YEP_MessageCore if that would help to centre it... I have Google searched and searched on here, but I can't find a solution, aha. XD

Thanks, any help is appreciated!
i do not quite understand what the problem is. I have no trouble at all centering scrolling text . It is just 3 steps but it is a line by line process. First type all you want to say, paying strict attention to the break line on the right and leaving no spaces between the lines. Next, look at the preview to make sure each line has no clips at the end. Finally, look at where you want to separate your paragraphs at and do jusy like in note pad to put a blank line between each paragraph . Then just go to each line and center it, yes it is tedius but you should see my opening credits. They start with the opening of a song and the last word rolls off the top of the screen exactly to the second with the ending of the song, and then automatically kicks off the game. Maybe there is something i am missing here. If you take the time and can work with text documents what is the problem?
Window_ScrollText uses drawTextEx to render text, so you can't, until someone finds a way to add alignment to that method (which is a lot harder, than it sounds).
how about explaining why a plugin is needed to center scrolling text? Anybody that can work with rich text documents on any pc, can center lines in scrolling text all day long .. i do not get what you are driving at here. I did this first thing day one
Won't work if the game window width is variable or something other than the default.
What I mean is that I don't know the code in the text editor to center things... (I do with html, and css and a few other coding languages, but I'm unfamiliar with codes for RPG Maker, or which one it uses to center) I have tried to hover over the text and see the command but I can't see it. If you can do it with a code to center each line, what is it? But if you have to indent all lines then I shall wait until someone figures out an easier way because it might mess up if someone with a different screen width uses it XD Better to be safe than sorry 😛
how about explaining why a plugin is needed to center scrolling text? Anybody that can work with rich text documents on any pc, can center lines in scrolling text all day long .. i do not get what you are driving at here. I did this first thing day one
The function i'm talking about renders text one character at a time, while dynamically changing text size and displaying icons. To center text, you would need to:
- Render text on a separate canvas.


- On linebreak/text end calculate the width of the text you just printed and render it on the main canvas.
Preferably, scrolling text is only used for something repetitive/unbelievably long. For example, When I wanted a character barging in a kingdom loudly, I used scrolling text for "YAHHH..!". I never used it for something small, so that might be the case, and when I use scrolling text for something large, usually it comes through the center. It never aligned right or left for me... That's odd...

If you use a lot of text, maybe it will align center. Sorry if this post wasn't all too helpful.

Original thread: https://forums.rpgmakerweb.com/threads/scrolling-text.53579/