I need a Json example

Get help using Construct 2

Post » Mon Aug 13, 2012 12:15 pm

I'm trying to use json but i am doing something wrong.Can anyone upload a simple json .capx that uses load json as a string to an array.I am adding string but it cant understands that.I looked for forums, I used special construct2 format for string.All in all i need an example...
B
7
Posts: 8
Reputation: 941

Post » Mon Aug 13, 2012 12:47 pm

The "Score system" of my tutorial Asteroid clone in less than 100 events uses the "Array: Load from JSON string" action.

The tutorial about project files also elaborates on JSON strings.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Mon Aug 13, 2012 1:11 pm

Thank you for reply, but i need directly entering string for json not webstorage and i need .capx file to see what am i doing wrong, but thank you again
B
7
Posts: 8
Reputation: 941

Post » Mon Aug 13, 2012 2:45 pm

Go back and take the time to read my tutorial, you would see where the JSON string comes from (saved from an array).
The capx can be downloaded in the arcade (link in the first page of the tutorial).

At worst post your own capx here.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795


Return to How do I....?

Who is online

Users browsing this forum: jeffige and 0 guests