How do I load text from a .txt file?

Get help using Construct 2

Post » Fri May 06, 2016 3:51 am

I've been fiddling around with Construct recently and I've came upon a stumbling block, the rather limited text tools.
For the average game, this would be fine; however, I plan on creating a rather text-heavy game. It seems that the current text entry doesn't allow paragraphs, so I decided to import text from an external source, which would also help me organize the various pieces of text easier.
But now I can't figure out how to put the contents of a text file into the game.
I'd be okay with using JSON or XML if it helps.
Help, please?
Posts: 16
Reputation: 1,392

Post » Fri May 06, 2016 11:39 am

AJAX object

How to make a request
The basic usage of the AJAX object consists of:

Use the Request action to load a URL.
A moment later after the request completes, On completed triggers.
The LastData expression can be used to access the content of the response.
The tokenat system expression may be useful to split simple responses. Alternatively, you could load LastData in to the XML plugin to read it as an XML document.
Posts: 1,519
Reputation: 11,104

Return to How do I....?

Who is online

Users browsing this forum: saiprakash, SERGIOManOwaR, Themrcoolio, zenox98 and 5 guests