Can't read data from a 3D array

0 favourites
  • 3 posts
From the Asset Store
Data+ is the best Data Management solution for Construct 3. It contains 4 Addons (Plugin & Behavior).
  • Hello

    I've made a JSON databse and loaded it into a 3D array, but can't seem to read any data from the array.

    The array did get the data - checked with the debugger.

    I've downloaded a 2D array capx tutorial that reads data from an array and views it on a textbox. I've changed it so it would read a 3D array to check what's wrong, and it seems that the array is bad itself.

    Can't figure out what the problem is...

    This is the CAPX

    https://www.dropbox.com/s/1sv23khl7plowdn/3d%20array.capx?dl=0

    Any ideas?

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Your format is incorrect. This is what C2 outputs as a 12x5x4 array

    {"c2array":true,"size":[12,5,4],"data":[[[0,0,0,"99"],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]]]}

  • Thanks! I never would be figuring this out by myself...

    Aren't there any JSON debugger in C2?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)