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
7
G
3
Posts: 366
Reputation: 6,242

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
77
S
10
G
6
Posts: 952
Reputation: 9,944

Post » Tue Jul 31, 2012 9:11 am

@InvaderX
Check the example on that other topic.
B
85
S
27
G
77
Posts: 5,005
Reputation: 53,744

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
7
G
3
Posts: 366
Reputation: 6,242

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
85
S
27
G
77
Posts: 5,005
Reputation: 53,744

Post » Tue Jul 31, 2012 9:53 pm

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


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests