How do I can use a web storage

Just started using Construct 2? Post your questions here

Post » Wed Mar 19, 2014 1:37 pm

Hi! Sorry for this question but that problem creates a lot of obstacles to me.

Actually, I can't save information in web storage! The goal which I'm trying to achieve is to collect apples and after I leave the game I need apples which I have already collected! What is the mistake in my easy screen?
You do not have the required permissions to view the files attached to this post.
B
7
S
1
Posts: 73
Reputation: 603

Post » Wed Mar 19, 2014 6:06 pm

From the manual:
"Note WebStorage only stores strings. If you set a key to a number like 100, when you retrieve it back it will be a string. To convert it back, use the system expression int, e.g. int(WebStorage.LocalValue("score")").
B
83
S
22
G
15
Posts: 1,039
Reputation: 15,219


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests