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
81
S
13
G
7
Posts: 969
Reputation: 10,883

Post » Tue Jul 31, 2012 9:11 am

@InvaderX
Check the example on that other topic.
B
92
S
32
G
110
Posts: 5,295
Reputation: 71,501

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
92
S
32
G
110
Posts: 5,295
Reputation: 71,501

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: brunopalermo, MeteoorSC, TRMG and 24 guests