Load from external file

Get help using Construct 2

Post » Thu May 23, 2013 7:12 am

Hi,

I am very new with Construct 2 and kinda looking for a solution to load from external file.

The format can be either

CSV, JSON or XML.

I basically want to map a bunch of words into array to be dynamically loaded in the game.

So far i can do it using CSVToArray function to do this. The only thing is all the words must be predefined inside the game.

I would like to load it from external file (or via JSON) so that the word list can be changed as needed.

I read the documentation by using JSON thus later on using AsJSON expression but i don't know how to do this...

Can anyone show me how to do this?

Cheers,
B
5
Posts: 10
Reputation: 245

Post » Thu May 23, 2013 3:15 pm

Request a file with the AJAX object.
Scirra Founder
B
357
S
214
G
72
Posts: 22,946
Reputation: 178,228

Post » Tue May 28, 2013 3:40 pm

Is there a more detailed tutorial? i.e. how should i format the JSON (if choose so)
B
5
Posts: 10
Reputation: 245


Return to How do I....?

Who is online

Users browsing this forum: badmoodtaylor and 9 guests