Question Regarding Pre-Loading

I understand that it is possible to preload textures, but is it possible to preload text?

The problem I’m having is that I have a long text (though not so long as to exceed texture memory), which is in a scrollview, but that when I display it, it takes a few moments to display. I was hoping there is some way to display the text without having to recreate it up every time.

Finally, which would be considered more efficient: Creating multiple objects of Text, or creating one large object of Text.

Read “Good bye globals” Corona sdk tutorial (Google it)… Make a txt.lua external module… Well organized. And call the texts from that module to the current scene you have the scrollview. Remember to requiere your txt.lua in each scene you are going to use it.

In lua, table and functions are your best friend. I’m still trying to understand it better, cause I’m a newbie like you. If you fell capable to create functions to manage your texts, for example, I think you have a lot of repeated words make a function to handle it four you and focus in the words that are not so common.

DoDi

Yeah you can preload text into objects and reuse them.  But seriously if you have vast amounts of text to display the use HTML and WebView.

Read “Good bye globals” Corona sdk tutorial (Google it)… Make a txt.lua external module… Well organized. And call the texts from that module to the current scene you have the scrollview. Remember to requiere your txt.lua in each scene you are going to use it.

In lua, table and functions are your best friend. I’m still trying to understand it better, cause I’m a newbie like you. If you fell capable to create functions to manage your texts, for example, I think you have a lot of repeated words make a function to handle it four you and focus in the words that are not so common.

DoDi

Yeah you can preload text into objects and reuse them.  But seriously if you have vast amounts of text to display the use HTML and WebView.