Is this a supported json format?

Get help using Construct 2

Post » Tue Oct 27, 2015 2:25 am

is this a supported json format?
https://www.dropbox.com/s/9h84fhaed9qnj ... .json?dl=0

if not is there a plugin that supports it so I can use it for my game?
B
14
S
6
G
1
Posts: 150
Reputation: 1,987

Post » Tue Oct 27, 2015 5:01 pm

rex_hash is your savior. It will parse any (at least all that I have tested) valid JSON.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Tue Oct 27, 2015 6:31 pm

Edit: can you explain how this works more
how to loop though json arrays for those in a certain folder and use them?
how do I set my objects animation depending on the object config?

if you've ever played starbound thats what I'm going for
except much smaller
B
14
S
6
G
1
Posts: 150
Reputation: 1,987

Post » Wed Oct 28, 2015 6:58 pm

You use AJAX to call json files from you server, and feed the resulting AJAX.LastData into rex_hash's "Load JSON from string" method which parses it into data structures stored in RAM after which you can use keys to access the data.

Read the thread he posted, and read his documentation.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857


Return to How do I....?

Who is online

Users browsing this forum: dop2000, Yahoo [Bot] and 5 guests