Correct C2 JSON?

0 favourites
  • 2 posts
From the Asset Store
A full Spriter-based Platformer engine for C2 or C3
  • 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"]

    ]

    ]

    }

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Yeah, but to make it easier for yourself, try organizing it like this ( this is from my sheet ).

    {
    "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]				]
    
    ]
    }
    [/code:1oifu70w]
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)