Game Shop/Store

Get help using Construct 2

Post » Sat Nov 19, 2016 11:43 pm

The title says it all, but i wanna know how can i store the coins being collected by the players and later on use it to buy some item in my game and also subtract the collected coins if the player decided to buy new item. (If you are familiar with pen apple game from Ketchapp, You can collect coins and use it to buy pens. That's what i want to achieve)

This is a mobile game and im not pertaining to In-App purchases, I just want an "In game shop" where players can collect coins and buy items using it
B
29
S
12
G
4
Posts: 66
Reputation: 4,223

Post » Sun Nov 20, 2016 11:10 am

The number of collected coins will be a global variable, consistent across the game, and you can save these values using local storage. When the player loads the game again you load the save game and all of the values. The shop would just be some UI that subtracts a number of coins from the global variable.
B
46
S
16
G
74
Posts: 2,089
Reputation: 44,187

Post » Tue Nov 22, 2016 2:50 am

Check out my awesome Android Game releases https://play.google.com/store/apps/deve ... ames&hl=en
B
38
S
18
G
24
Posts: 681
Reputation: 16,613

Post » Wed Nov 23, 2016 12:05 am

PixelPower wrote:I made a perfect example of this here.

money-and-shop-system-local-storage-only-10-events-capx-file_t182196


OMG, i love you it works. I just need to design my game shop and thank you. By the way, i also use your "Local Storage High score System" and i love it
B
29
S
12
G
4
Posts: 66
Reputation: 4,223

Post » Wed Nov 23, 2016 10:34 am

jance0405 wrote:
PixelPower wrote:I made a perfect example of this here.

money-and-shop-system-local-storage-only-10-events-capx-file_t182196


OMG, i love you it works. I just need to design my game shop and thank you. By the way, i also use your "Local Storage High score System" and i love it


Great I'am glad that it works for you. Saving is one of the toughest parts of game making so thats why I always look for a way to simplify it.
Check out my awesome Android Game releases https://play.google.com/store/apps/deve ... ames&hl=en
B
38
S
18
G
24
Posts: 681
Reputation: 16,613


Return to How do I....?

Who is online

Users browsing this forum: evillair, Google [Bot], NumberOne and 5 guests