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