Multiple line text not working on iPhone?

OniCraftOniCraft Member, BASIC Posts: 43
edited December 2011 in Working with GS (Mac)
Im game salad, I Option+enter to create multi line text display
but when it's on iPhone, they just displayed right next to each other in one line
Help?

Comments

  • POMPOM Member Posts: 2,599
    edited December 2011
    To drop a line in display text i suggest you use one out of too methods :

    1) select "wrap inside actor" so that you can make a text block and your text will be only inside your actor .

    2) use .."\n".. to drop a line .

    The 2 dots needs to be between attributes and other words ..

    For example , if you want to write down :

    hello
    world

    you will make it like this :
    "hello".."\n".."world"

    Hope it helps.
    Roy.
  • OniCraftOniCraft Member, BASIC Posts: 43
    Oh thanks!
    Guess the tutorial I watched was outdated
  • OniCraftOniCraft Member, BASIC Posts: 43
    Another question, what is the expression to put space between words?
  • POMPOM Member Posts: 2,599
    To put space simply press :
    option+space .
    This should work.

    Cheers
    Roy.
  • OniCraftOniCraft Member, BASIC Posts: 43
    Thanks a lot,
    I should have no problem now!
  • CloudsClouds Member Posts: 1,599
    Hmmmmm . . . . . .

    Anyone know why I can't do this as explained above . .

    I cut and pasted P-O-M's example text ("hello".."\n".."world") into the display text behaviour but it still comes out as a single line with the code displayed in the middle (ie: exactly like this > "hello".."\n".."world").

    ?

  • POMPOM Member Posts: 2,599
    edited December 2011
    Hey Tynan,
    you should put it in the expression editor ,
    in your display text behavior , press the little - e - at the right side
    Then paste it there..

    Roy.
  • CloudsClouds Member Posts: 1,599
    That's done the trick !

    Cheers Roy, I was (as you correctly guessed) typing it into the text field and not the expression editor !

    : o

    : )


  • micksolomicksolo Member Posts: 264
    Thanks for the explanation. I'm using text plus the value of an attribute

    so something like this

    "Hello".."/n".."game.value"..

    and its coming out as

    Hello/
    nGameValue

    So its working, but its displaying the /n. Anyone got any ideas?
  • micksolomicksolo Member Posts: 264
    ok I figured it out, 2 mistakes I was making.

    First was its \n not /n (duh)
    second was I had two fullstops after the word which comes out as "invalid expression". I guess its looking for another that is there.
Sign In or Register to comment.