How do I add long text

Get help using Construct 2

Post » Fri Jun 08, 2012 4:42 am

I just started with Construct 2 days ago and perhaps this is something obvious, but I have to add long text that has multiple paragraphs into the game. The Text object does not seem to allow me to add breaks between paragraphs. Am I missing something?
B
3
Posts: 7
Reputation: 289

Post » Fri Jun 08, 2012 10:11 am

You can create a line break by using the "newline" expression, if I understand well your issue.

Like "Hello" & newline & "world"

It works when setting the text value from the event sheet.
I didn't manage to make a new line just by typing that in the initial value field.Canapin2012-06-08 10:13:47
B
5
S
1
Posts: 34
Reputation: 1,026

Post » Thu Jun 21, 2012 4:14 am

hmm I inserted the text object and under properties, text, I added your line and it did not work. I tried adding the text under event sheet but no clue how to... Is there a way you can set it up as event?
B
3
Posts: 7
Reputation: 289

Post » Thu Jun 21, 2012 10:15 am

ok ...

Consider a text object "MyText" ... is default text property can only contain standard text such as "Hello!" to display :

Hello!

Now in your "Project" events layout you can do :

On Start of layout | MyText : set Text to "Hello!" & newline & "world"

to display now :

Hello!
world

You can do this to have the same result because "Hello!" is the default text :

On Start of layout | MyText : Append newline & "world"

Don't forget that for display several lines in a text object, this object must have a big height too, and the size change is not automatic !
naelian2012-06-21 10:25:08
B
16
S
5
G
3
Posts: 298
Reputation: 5,240

Post » Thu Jun 21, 2012 3:57 pm

there is a way to load in large chuncks of text with an .txt file

example
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Fri Feb 14, 2014 4:58 am

Thank you, this method is awesome!
B
10
S
5
Posts: 28
Reputation: 1,508


Return to How do I....?

Who is online

Users browsing this forum: ETgirl79 and 27 guests