Any alternative to AJAX request json file?

Get help using Construct 2

Post » Sun Feb 03, 2013 7:17 pm

Hi, as Cocoon does not support AJAX, I'm havin' problems loading a json file imported in the project. Inside this json there is an array in which are stored tiles for a map of a dungeon crawler game. Any alternatives or suggestions?
B
12
S
2
Posts: 36
Reputation: 1,949

Post » Tue Feb 05, 2013 3:47 pm

bump
B
12
S
2
Posts: 36
Reputation: 1,949

Post » Tue Mar 05, 2013 4:10 am

You can copy/paste the json text into the "Load into array" dialogue box. You'll need to add extra quotes " at the start and end and around the words c2array, size and data.
B
7
Posts: 38
Reputation: 476

Post » Thu Mar 21, 2013 5:10 pm

Thanks a lot Mike, sorry for late reading
B
12
S
2
Posts: 36
Reputation: 1,949

Post » Fri Mar 22, 2013 1:53 am

[QUOTE=PePPo] Hi, as Cocoon does not support AJAX, I'm havin' problems loading a json file imported in the project. Inside this json there is an array in which are stored tiles for a map of a dungeon crawler game. Any alternatives or suggestions? [/QUOTE]

Updated CocoonJS launcher supports AJAX if you allow Cross Domain control.

It worked mine because i set allowed access to everything from my server.
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 21 guests