Import and export JSON file.

Get help using Construct 2

Post » Tue Jul 31, 2012 9:11 pm

I'm creating a level editor for my game and I'm wondering if it's possible to export array JSON file to specific location as well as importing them into the game?
B
4
S
2
G
4
Posts: 164
Reputation: 2,178

Post » Tue Jul 31, 2012 9:15 pm

You can use the 'Array: Download' action. That will give you a link to the JSON which you can then save as a text file or whatever.
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Tue Jul 31, 2012 9:26 pm

How would I go about importing back into the game after that though?
B
4
S
2
G
4
Posts: 164
Reputation: 2,178

Post » Tue Jul 31, 2012 9:41 pm

You could use project files and AJAX. This tutorial has a bit about making a level editor:
http://www.scirra.com/tutorials/328/using-project-files-in-construct-2/page-1
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020


Return to How do I....?

Who is online

Users browsing this forum: zenox98 and 23 guests