How do Files work with AJAX?

Get help using Construct 2

Post » Tue Apr 18, 2017 10:46 am

I want to use AJAX to load in some text from a .txt file.

To do this i have added the txt to the files folder on construct 2.

When the game is played (NWJS) how will this work?

Do i have to create this .txt inside the games folder for it to read?

Ant help greatly appreciated.

Thanks.
B
5
S
1
Posts: 65
Reputation: 507

Post » Wed Apr 19, 2017 10:12 am

The project files get compressed into package.nw file (html5 export just has the files uncompressed in the root folder).
B
17
S
6
G
1
Posts: 41
Reputation: 1,725

Post » Wed Apr 19, 2017 11:21 am

Maukka wrote:The project files get compressed into package.nw file (html5 export just has the files uncompressed in the root folder).


Cheers, realised this shortly after posting and used the URL request instead
B
5
S
1
Posts: 65
Reputation: 507


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests