Cannot get new line in displaytext

So this is for iPhone.

"Hello\nTest"

Displays as this
http://puu.sh/309ux.png

"Next".."\n".."Line" does the same
http://puu.sh/309wX.png

No matter what I put, it comes up with the exact characters, no new lines.

I've read like a million topics about this but can't figure out what I'm doing wrong.

Help appreciated.

Comments

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

    Hi @sokaroka The second version is correct, but you must make sure it's inputted in the Expression Editor (by clicking the "e" symbol)... should all be OK then.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • sokarokasokaroka Member Posts: 9
    Yes I did input it in the Expression Editor.
    Still displays the exact text.
  • jamies15-3jamies15-3 Member Posts: 94
    @sokaroka if you format the text in a text editor like test edit etc then simply copy and paste, thats how I add additional lines etc.

    Hope that helps.
  • ORBZORBZ Member Posts: 1,304
    edited May 2013
    @sokaroka

    Please post a screenshot of the expression you are using in the expression editor. i.e. show a screenshot of the expression editor window itself please.

    What version are you using Mac GS Creator or Windows GS Creator? I just tried it on Mac and it works fine.

    Display Text: Expression: "Hello\nWorld"
  • BluemoonstudiosBluemoonstudios Member Posts: 156
    Hold down shift and press enter this will give u a new line. Or maybe it's option or command enter. Try them all one of em will work. Cheers
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Option+return will give you a new line in the expression editor but it does NOT affect the display of text in the scene.

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

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Use the second expression but remove the quotes around \n

    Should be "hello"..\n.."world"

    The only thing you ever out in the quotes is what you want displayed. I think anyway. It's been a while since I did it. :)
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    The \n should be within quotes. Either separate ("hello".."\n".."world") or combined ("hello\nworld").

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

Sign In or Register to comment.