Hello.
Please, look on this:
screencast.com/t/Glmqw4Asw
How can I push to this variables object and use this object after?
[ {"get": 3, "gridSize": 3}, {"get": 3, "gridSize" 4} ]
Wouldn't it be easier to put all values in a seperate "cell" of the array?
Develop games in your browser. Powerful, performant & highly capable.
Okey, now I got this
screencast.com/t/arCmX2IF5qIt
And output of console:
{"c2array":true,"size":[10,1,1],"data":[[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]]]}
What I missed in example here? Size? Have I type this manually?
"[{""gridSize"":3,""get"":3},{""gridSize"":3,""get"":3},{""gridSize"":3,""get"":3}]"
The simplest way to figure this out is to make a quick test project and manually assign the data into the array in the manner that you expect to see it. Dump the JSON string out, and then copy that format for your input data.