How to add a text display line break?
Mekonbekon
Member Posts: 8
Hi all,
I'm trying to split up display text using line breaks, but not having much success.
I've attempted the following formatting:
attribute_1.."\r"..attribute_2 output = attribute_1\rattribute_2
attribute_1.."\n"..attribute_2 output = attribute_1\nattribute_2
attribute_1.."/r"..attribute_2 output = attribute_1/rattribute_2
attribute_1.."/n"..attribute_2 output = attribute_1/nattribute_2
"blahblah".."\r".."blahblah" output = blahblah\rblahblah
"blahblah".."\rblahblah" output = blahblah\rblahblah
attribute_1..\r..attribute_2 output = 0
attribute_1..\n..attribute_2 output = 0
Any ideas what I'm doing wrong? I thought .."\r".. and .."\n".. are meant to work? I'm using the windows GS, if that makes a difference.
Thanks in advance!
I'm trying to split up display text using line breaks, but not having much success.
I've attempted the following formatting:
attribute_1.."\r"..attribute_2 output = attribute_1\rattribute_2
attribute_1.."\n"..attribute_2 output = attribute_1\nattribute_2
attribute_1.."/r"..attribute_2 output = attribute_1/rattribute_2
attribute_1.."/n"..attribute_2 output = attribute_1/nattribute_2
"blahblah".."\r".."blahblah" output = blahblah\rblahblah
"blahblah".."\rblahblah" output = blahblah\rblahblah
attribute_1..\r..attribute_2 output = 0
attribute_1..\n..attribute_2 output = 0
Any ideas what I'm doing wrong? I thought .."\r".. and .."\n".. are meant to work? I'm using the windows GS, if that makes a difference.
Thanks in advance!
Answers
Hi @Mekonbekon I use the Mac version but as far as I'm aware, the Windows version is the same in this instance.
So to your problem: in every example, you've added an equals sign without quotes.... so for the first one put in the expression editor for a Display Text Behaviour (the rest similar) should be:
attribute_1.."\r"..attribute_2 output.."="..attribute_1\rattribute_2
Hope I've understood what you're after correctly...
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
The text after "output =" is what is actually displayed on screen, so I enter:
(attribute_1).."\r"..(attribute_2)
into the display text field and:
attribute_1\rattribute_2
is displayed in game, rather than:
attribute_1
attribute_2
It appears that the "\r" or "\n" isn't being recognized as a line break indicator. Hope that makes a little more sense
@Mekonbekon D'oh, I see what you mean now (I was a bit slow there...) :-)
Sorry to hear via @sparkania and @PixelMetal that line breaks aren't working on the Windows version...
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Display Text:
"Hello, how are you?".. (press enter)
"I am well."..(press enter)
"Awesome!"
Note: This makes it works in GS Windows, but I have not tested it on the device itself yet. If you test on device reply here to inform if it works on device.
Also note, do not use line breaks for display texts on projects that you are transferring from windows to mac or mac to windows. It won't work correctly.
IF you must do it, then use one system for all text behaviors. So, do all Display Text on the windows machine and other code on mac machine etc...
"Hello, how are you?"..
that's exactly how it should look.