How do I save and load array as json with local storage

Get help using Construct 2

Post » Sat Jun 03, 2017 11:33 am

Hay guys, I am working on a game, I've done all the level's and other event coding, but now I want the player to be able to save its progress using an array. I tried messing around with local storage and I was able to save and load normal variables, but every time I try to save array as json I get stuck.

Can anyone help me how to save and load array with local storage, It would help me a lot if someone made 2-3 event example.
Like my work? Fallow me on social media, and see my games on the arcade.
B
7
S
5
G
9
Posts: 298
Reputation: 5,367

Post » Sun Jun 04, 2017 11:23 am

Bump
Like my work? Fallow me on social media, and see my games on the arcade.
B
7
S
5
G
9
Posts: 298
Reputation: 5,367

Post » Mon Jun 05, 2017 3:08 pm

Solved, I manage to fix it by saving the array as array.asJson.
Like my work? Fallow me on social media, and see my games on the arcade.
B
7
S
5
G
9
Posts: 298
Reputation: 5,367


Return to How do I....?

Who is online

Users browsing this forum: Fradno, marcinkowski, tarek2 and 10 guests