The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Drykul on October 14, 2008, 05:53:36 PM

Title: Multiple lines of text in a single window
Post by: Drykul on October 14, 2008, 05:53:36 PM
Is there a more efficient way to do this what is in my example below? It seems to lag when the window loads up...

Code: [Select]
    $race_info.contents.clear
    $race_info.contents.draw_text(0, 0, 80, 32, "Title")
    $race_info.contents.draw_text(5, 20, 250, 32, "Some sub information")
    $race_info.contents.fill_rect(5, 47, 250, 2, Colors::White)
    $race_info.contents.draw_text(10, 50, 350, 32, "text text text text text text text text text ")
    $race_info.contents.draw_text(10, 65, 350, 32, "text text text text text text text text text ")
    $race_info.contents.draw_text(10, 80, 350, 32, "text text text text text text text text text ")
    $race_info.contents.draw_text(10, 95, 350, 32, "text text text text text text text text text ")
    $race_info.contents.draw_text(10, 110, 350, 32, "text text text text text text text text text ")
    $race_info.contents.draw_text(25, 135, 700, 32, "text text text text text text text text text ")
    $race_info.contents.draw_text(0, 150, 700, 32, "text text text text text text text text text ")
    $race_info.contents.draw_text(0, 165, 500, 32, "text text text text text text text text text ")
    $race_info.contents.draw_text(0, 180, 500, 32, "text text text text text text text text text ")
    $race_info.contents.draw_text(10, 215, 500, 32, "text text text text text text text text text ")

Mind you, that's only an example of how I had to draw multiple lines of text in the same paragraph, but the window lags when it loads all that text drawn seperatly, just wondering if there's a better way to do it.