The question is simple. Which function or what exactly do I have to do to allow you to enter in a rather long string of text and I word wrap it for you. This clearly seems to be a built in feature so how do I take advantage of it? I would like to be able to wrap sentences that are longer then a specific width specified to drawText or drawTextEx ...
Ideas? (Sample code too please if possible
Why do you say it's a built-in feature? It's not, as far as I know, unless you're looking at something particular in the script.
One of the plugins from either Yanfly or Yami has word wrapping. If you don't want to use their plugins, you could at least take a look and see how they handle it.
I assumed it was built in.
@Zalerinian Your method is a mess and very hard to read. I feel like it would be very fragile.
I might just look at yanflys word wrapping and steal the concept, that or make you put in short names, Like I do for currency descriptions
Yeah, word wrapping has never been built in. Some people believe it's there because of that line in the Show Text box when you enter text, but that's got nothing to do with word wrapping - that is there to show you how much text you can have on a line before it starts disappearing. It moves, depending on whether you have a face or not.
then Ill do what I did with my currencies script, where I said that if you do the description too long it will disappear off the window. 😀