QUICK TIP: using the [DISPLAY TEXT] Behavior
wayneh001
Member Posts: 300
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 :-)
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
Nice work!
So nice!
Should be on the wiki
Looks up DISPLAY TEXT in the Reference Library >> Glossary (by alphabet).