QUICK TIP: using the [DISPLAY TEXT] Behavior

wayneh001wayneh001 Member Posts: 300
edited November -1 in Introductions
I know some of you will already know this - and it's probably documented somewhere. But, my lad pointed out to me that he couldn't do SPACES or RETURN LINES when using the `[Display Text]` Behavior.

After a little play around it turns out YOU CAN!

Here's how.

1. Add the `[Display Text]` Behavior to your Actor.
2. Click on the [e] to edit the text.
3. Always ensure you enclose your text with [ " ] - speech marks.
4. To add a Space press [Alt + Space] where you want a Space.
5. To add a Return Line type [ \r ] - thats Backslash, lowercase r.
6. To join Variables and other entities to the text you can concatenate using [ .. ] - two dots.

ie:

"Mary`[Alt-Space]`Had`[Alt-Space]`a".."\r".."Little`[Alt-Space]`Lamb:`[Alt-Space]`"..`game.Score`

Would OUTPUT

Mary Had a
Little Lamb: 100

/End todays tip :-)

Comments

  • CatOnAKeyboardCatOnAKeyboard Member Posts: 39
    I once tried to use a \n and it never worked! Darn you, Unix >.< I overlooked \r
  • JCFordJCFord Member Posts: 785
    A-M-A-Z-I-N-G! Once again!
  • BarkBarkCoBarkBarkCo Member Posts: 1,400
    Way better than my method...typing space and Opt+Return into game.text attributes...

    Nice work!
  • JamesZeppelinJamesZeppelin Member Posts: 1,927
    Awesome!!!

    So nice!
    Should be on the wiki
  • JGary321JGary321 Member Posts: 1,246
    Awesome, nice tip.
  • JackBQuickJackBQuick Member Posts: 524
    This would help me. Thank you for the tip.
  • rbsmith5rbsmith5 Member Posts: 2
    I knew it could be done, but after an hour or so of searching... here I am. Thanks!
  • synthesissynthesis Member Posts: 1,693
    I added this to the WIKI reference for the future.

    Looks up DISPLAY TEXT in the Reference Library >> Glossary (by alphabet).
Sign In or Register to comment.