Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Scripting trick for splitting large texts up into lines
Traverse
post Jan 11 2010, 07:33 AM
Post #1


Level 3
Group Icon

Group: Member
Posts: 44
Type: None
RM Skill: Undisclosed




Hey, I'm working on a script for a guidebook that will act as an instruction manual for my project. I want to make a window class < window base with methods that will take a block of text, seperate it into lines, then print the text into a transparent window over a picture of a book.

Does anyone know of (or have already written) a method for seperating texts into lines?

I guess I would need a way to recognize individual words, then recognize if a word exceeds the line length, then split the string before that word and draw the rest of the text on the next line, huh? I'm pretty new to scripting so if anyone has any advice on this one, I'd appreciate it


__________________________
Vis vobiscum.

Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 19th May 2013 - 09:15 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker