How do I, read from external file?

Get help using Construct 2

Post » Tue Feb 18, 2014 12:07 pm

Hey everyone,

I am trying to create a multiple choice game that reads questions from an external excel sheet (or any other form of external file).

I want to know how/if that can be done.
Posts: 1
Reputation: 177

Post » Tue Feb 18, 2014 12:19 pm

If the file isn't in the project (aka external), you can load it using the AJAX.RequestURL action. You will then be able to handle the response in a text format. Excel could then be hard to read, as the file isn't that much text-friendly. If it is a table you need, then try to use the CSV format instead.
Last thing, a warning : you have to store the requested file on the same domain as your application. AJAX won't be able to load something from another domain (this is a limitation from AJAX in all browsers : no cross-domain)
Posts: 473
Reputation: 6,321

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests