How do I save global variable in localStorage and google pl

Get help using Construct 2

Post » Sat Oct 01, 2016 6:02 pm

how do I save only one variable in a 2 construct the project in play gamese google when the player loses the phone or switch cell phone when he login carry what they already bought in IAP and the variable that were saved? it's possible?
B
9
S
2
Posts: 8
Reputation: 541

Post » Mon Oct 03, 2016 5:29 am

I believe you want to use the IAP object, which is only available in licensed versions of Construct 2. It will save the purchase to the user's account, rather than the device. https://www.scirra.com/manual/173/iap

Currently the IAP plugin supports these platforms:

PhoneGap Build (iOS + Android)
CocoonJS (iOS + Android)
Ejecta (iOS)
Windows Store (Windows 8+, Windows Phone 8.1+)
Blackberry 10
Amazon Appstore
Tizen
B
25
S
11
G
4
Posts: 30
Reputation: 3,917

Post » Mon Oct 03, 2016 12:05 pm

Thank you brother but

for example

the User purchase an item that activates a layout

and IAP saves the User's account and the localStorage saved on the device

for example

then he loses the device and purchase another

when he log on google play this layout he activated the iap will appear?
B
9
S
2
Posts: 8
Reputation: 541


Return to How do I....?

Who is online

Users browsing this forum: plinkie and 2 guests