How do I can use LocalStorage for a Coins Wallet?

Get help using Construct 3!

Post » Thu Feb 01, 2018 12:12 pm

Hi, I want to make a pet game, so when you play other minigames of the pet, you can get coins, but I don't know how to apply LocalStorage.

Image
This is how I have, but didn't work.
Image
B
38
S
10
G
2
Posts: 70
Reputation: 2,831

Post » Thu Feb 01, 2018 1:31 pm

Hi, you're missing the GET function. You need to put the 'Set Coins' action within it.
This is how I'm doing it. I've called it from a function, but 'on start of layout' is fine.
Image
B
10
S
1
Posts: 41
Reputation: 606


Return to How do I...?

Who is online

Users browsing this forum: graham-s and 1 guest