How do you save an RPG game in webstorage!

Get help using Construct 2

Post » Tue Jul 31, 2012 5:44 am

How do you save progress in an RPG game with local webstorage?
I searched for it, and nothing helped. Can anyone help, me?
NOTE: This wont help: http://www.scirra.com/forum/how-to-use-webstorage_topic46068.html
B
30
S
8
G
3
Posts: 366
Reputation: 6,302

Post » Tue Jul 31, 2012 8:56 am

Do you know how to use arrays?
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
88
S
16
G
7
Posts: 999
Reputation: 11,451

Post » Tue Jul 31, 2012 9:11 am

@InvaderX
Check the example on that other topic.
B
94
S
33
G
123
Posts: 5,454
Reputation: 78,471

Post » Tue Jul 31, 2012 4:10 pm

I tried it and it wont work for me. Can you check it out? The Gah-me (Game)
B
30
S
8
G
3
Posts: 366
Reputation: 6,302

Post » Tue Jul 31, 2012 5:56 pm

@InvaderX
Look at the example again, you need to make events 47-50 sub-events of 46.
Also the order of the actions is important. It should be like this:
Dictionary: clear
..
Dictionary: add key...
..
StorageGame: set value at index to Dictionary.AsJSON
System: add 1 to index
B
94
S
33
G
123
Posts: 5,454
Reputation: 78,471

Post » Tue Jul 31, 2012 9:53 pm

Still doesn't work.
B
30
S
8
G
3
Posts: 366
Reputation: 6,302


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests