DisplayText line spacing
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](http://img651.imageshack.us/img651/5448/ruler.png)
GS Creator:
GS Viewer/AdHoc: ![image](http://img37.imageshack.us/img37/45/ipad2adhoc.png)
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?
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](http://img651.imageshack.us/img651/5448/ruler.png)
GS Creator:
![image](http://img189.imageshack.us/img189/8052/gscreator.png)
![image](http://img37.imageshack.us/img37/45/ipad2adhoc.png)
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?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Best Answer
-
The_Gamesalad_Guru Posts: 9,922
Nice. Hey I have a nice reference link for LUA commands and info. http://www.lua.org/manual/5.2/manual.html#3.4.6
Answers
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....
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
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.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Appreciate the suggestions, guys. I think I'm good for now.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User