[SOLVED] Quick question about JSON array size.

0 favourites
  • 2 posts
From the Asset Store
220 Food Sprites in 16x16 pixel size. Perfect for items for a retro style game.
  • I'm trying out the JSON and AJAX functionality in Construct 2 and I just have a quick question. I'm just too tired for getting this right.

    When you load JSON data into Arrays you have to use the specific Construct 2 format for the JSON data. Which means you have to put this information before the actual data:


    What I'm wondering is what array sizes (see the code window above) I should enter for this array which I generated from a my MySQL table:


    Thanks in advance,


  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I managed to get it right after a much needed night of sleep ;)

    The size for the array is 1,2,5.

    Really don't know how I couldn't get that right last night. :P

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