JSON Modding?

Get help using Construct 2

Post » Fri Mar 15, 2013 3:49 pm

Hey Guys!
I want to use JSON to add to my node-webkit game the ability for the player to make JSON files or something, and then put them in the same folder as the game, then they can have custom objects, or customize things in-game kind of like modding. This is an example file:
[CODE]{
"c2dictionary":true,
"data": {
    "ObjectName": "Name",
    "Type": "Type",
    "Var1": 0,
    "Var2": 0,
    "Var3": 0,
    "Var4": 0,
    "Craftable": "No"
}
}
[/CODE]
and the game loads it. Is this possible? If so, what would I need to know to do this?
B
30
S
7
G
3
Posts: 366
Reputation: 6,242

Post » Fri Mar 15, 2013 3:58 pm

Never have done this with JSON but with XML its easy.

https://www.scirra.com/tutorials/266/webstorage-how-to-save-ingame-information could also help youlocalboss2013-03-15 15:59:43
B
15
S
6
G
6
Posts: 512
Reputation: 5,555

Post » Fri Mar 15, 2013 7:41 pm

I never really understood XML, but if you can, could you point me somewhere where I can possibly learn it?
B
30
S
7
G
3
Posts: 366
Reputation: 6,242


Return to How do I....?

Who is online

Users browsing this forum: EthanD57, Greaver, luckyrawatlucky, QuantumMMX, SpyDaniel and 9 guests