Fill an array with JSON

Get help using Construct 2

Post » Sat Mar 02, 2013 11:11 am

Hey guys,

How do I use JSON to fill an array?

e.g. If i have a (3,2) 2D array with values:

      a   b   c
   
      d   e   f

what is the exact JSON code i need to write this?

Also, what are the events to fill it once I have the JSON?


Sorry for my noobness. I've just started with C2 and am still working on my first game (after the tutorial). I have read the manual and tutorials but it all goes straight over my head as I have absolutely no programming experience.
B
2
Posts: 3
Reputation: 731

Post » Sun Mar 03, 2013 12:44 am

I've tried a few different ways to get it. I've seen a few forum/tutorials talking about .asJSON, so I manually filled an array, and made a text box to display the string. But it stays blank. What am I doing wrong?

Event sheet
B
2
Posts: 3
Reputation: 731

Post » Sun Mar 03, 2013 1:33 am

Make the text object big enough to display the whole string ;)ramones2013-03-03 01:34:08
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Sun Mar 03, 2013 1:51 am

B
2
Posts: 3
Reputation: 731


Return to How do I....?

Who is online

Users browsing this forum: emoticon, KeetonCat, makkancs, Matthew de and 25 guests