How do I, read from external file?

  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)