Correct C2 JSON?

Discussion and feedback on Construct 2

Post » Fri Apr 18, 2014 10:45 am

Hi all, I've got a quick question:

is the following JSON string understandable by the Load from JSON string action?

{"c2array":true,"size":[5,4,1],
"data":
[
[
[1],
["GAMEID"],
["Spelletje"],
["true"]
],
[
[2],
[""],
[""],
["false"]
],
[
[3],
[""],
[""],
["false"]
],
[
[4],
[""],
[""],
["false"]
],
[
[5],
[""],
[""],
["false"]
]
]
}
B
7
S
2
G
2
Posts: 46
Reputation: 769

Post » Fri Apr 18, 2014 11:58 am

Yeah, but to make it easier for yourself, try organizing it like this ( this is from my sheet ).
Code: Select all
{
"c2array":true,
"size":[11,5,1],
"data":
[
   [   ["1 Up"],      [38],[2],[3],[4]            ],

   [   ["2 Down"],      [40],[2],[3],[4]            ],

   [    ["3 Left"],      [37],[2],[3],[4]            ],

   [   ["4 Right"],      [39],[2],[3],[4]            ],

   [   ["5 Jump"],      [70],[2],[3],[4]               ],

   [   ["6 Attack1"],      [83],[2],[3],[4]            ],

   [   ["7 Attack2"],      [65],[100],[3],[4]            ],

   [   ["8 Block"],      [68],[2],[3],[4]            ],

   [   ["9 Dodge"],      [68+arrow],[100],[100],[100]   ],

   [   ["10 Item"],      [87],[2],[3],[4]             ],

   [   ["11 Spell"],      [32],[2],[3],[4]            ]

]
}
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
92
S
30
G
22
Posts: 1,987
Reputation: 20,178


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests