Get value from webstorage

Get help using Construct 2

Post » Thu Nov 03, 2011 1:38 am

If I understand correctly, "set local value" lets us store a value to an assigned key in browser cache, but how do we get the stored value? Please help. Thank you!
B
6
G
2
Posts: 11
Reputation: 1,214

Post » Thu Nov 03, 2011 1:15 pm

Use the expression

WebStorage.LocalValue("my_key")

All the possible expressions that you can use in Construct 2 are listed in the expressions panel, which is floating faded-out whenever you need to enter an expression.
Scirra Founder
B
378
S
220
G
84
Posts: 23,863
Reputation: 188,019


Return to How do I....?

Who is online

Users browsing this forum: jobel, omnipaws, tarek2, Zjahel0001 and 4 guests