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,252

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
79
S
12
G
6
Posts: 961
Reputation: 10,217

Post » Tue Jul 31, 2012 9:11 am

@InvaderX
Check the example on that other topic.
B
87
S
29
G
89
Posts: 5,103
Reputation: 60,192

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,252

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
87
S
29
G
89
Posts: 5,103
Reputation: 60,192

Post » Tue Jul 31, 2012 9:53 pm

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


Return to How do I....?

Who is online

Users browsing this forum: ma9ic, randomly, SnipG, totoe, Voytek and 11 guests