Help with display text fields

Hi all,
I am putting together a Statistics scene in my game. My problem is that it takes roughly 10 seconds for this scene to load when the user clicks to go there!

In the Statistics scene, I'm displaying approx. 50 different stats, each in its own actor that has a behavior telling it to display a certain table cell.
This scene is 3x the iPhone width, with buttons to scroll through.

Is it taking so long to load because of my 50 actors displaying text, or because the scene is so wide? (Though I don't think 3x is all that wide...)
This leaves me suspecting it's because of the 50 actors...is there a better way to display all of these table cells?

Any help is GREATLY appreciated!

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Each DisplayText behavior is constraining a table cell value so that may have an effect on your game. If possible, try combining cells into fewer DisplayText behaviors. You can do that by concatenating the data as follows:

    DisplayText [tableCellValue(tableName,1,1).."\n"..tableCellValue(tableName,1,2)] etc.

    The \n symbol is a newline (return).

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • AdrenalineAdrenaline Member Posts: 523
    Thanks! That's the kind of advice I was looking for. I'll give it a shot later tonight
Sign In or Register to comment.