DisplayText line spacing

tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
edited December 2012 in Working with GS (Mac)
I am having a problem with line spacing and DisplayText behaviors. I realize the answer might be to use custom graphics, but I'm trying to actually solve this or chalk it up to being a bug. It's helpful to use DisplayText to retrieve large amounts of data from tables. If I switch to custom graphics, I have to make an actor for each line (I have 25 rows of data) rather than using a single actor for the entire scene.

If I create a DisplayText behavior with newlines between numbers and preview it, it looks fine in GameSalad Creator but in either GameSalad Viewer on an iPad 2 or an adhoc version on an iPad 2, the line spacing gets distorted.

In the images below, the white column of numbers were made in Illustrator and the green and red numbers are displayed using DisplayText behaviors.

Rule: image

GS Creator: image GS Viewer/AdHoc: image

Other than adjusting the text to look incorrect in GameSalad Creator in the hopes of getting it correct on the iPad, is there any way to get this working properly?

Best Answer

Answers

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    Hi @tatiang

    That's annoying, for sure... maybe the bug (which I agree it looks like) is with the Wrap inside actor selected; so in the meantime, maybe experiment to see if the problem is solved by unchecking that....
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited December 2012
    @gyroscope, I had thought about that... thanks, I'll try it.

    Edit: Okay, that fixed it.

    Meanwhile, I've created the custom digit graphics and started to lay out the 50 actors I'll need. When there's a will, there's a way! Glad to have two options now.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Try \v as that's vertical tab in LUA
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited December 2012
    Try \v as that's vertical tab in LUA
    Hmm, nope. It looks fine in Creator but on the Viewer it bunches up the numbers on one line horizontally: 2 1 4 3 0

    Appreciate the suggestions, guys. I think I'm good for now.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    How about \t that is space on the horizontal. Ialways scrach my head that some LUA functions work and others don't. I wish I could get a list from the engineers on this.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Hmm... I might have been wrong about \v. If I make the actor very narrow so that it forces text onto the next line for each row, \v works and \t can work if sized correctly (otherwise it skips two lines). See attached.

Sign In or Register to comment.