How do I add a newline in xml?

Get help using Construct 2

Post » Thu Jul 20, 2017 10:42 am

How do I add a newline built into XML?

I'm wanting to make a preset list without having to make many text objects or worry about Word Wrap.


1. Text:
2. Text:
3. Text:
B
59
S
33
G
13
Posts: 223
Reputation: 12,105

Post » Fri Jul 21, 2017 6:33 am

Use a custom string to mark newlines in the text inside the XML. I used "\n\". When retrieving the text from the XML I used replace() to replace all instances of "\n\" with newline (without quotes around the newline).
B
15
S
6
Posts: 85
Reputation: 1,195


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests