Hey all. Wondering if anyone has a solution:
I want to create a shop that would display items that users could purchase with in-app currency. Once purchased, they would show up in the player’s inventory…when using an item, the item would disappear.
So far, I’ve managed to:
1.) Allow players to purchase items
2.) Display purchased items for each sign in user
3.) Deduct item cost from current balance for each user
4.) Allow users to “use” an item (which then gets removed from inventory)
The lone issue is preventing the user from purchasing (or even seeing) an item if they don’t have enough funds to purchase it. Right now, I can make the logic work in the spreadsheet, but it doesn’t seem like Glide can handle the logic (as it would have to compare multiple data points).
Any thoughts? Here’s the app (crude) so far: https://itemstore.glideapp.io
As you can see, you can purchase an item and it will show up in inventory, but users can purchase items they can’t afford and their balance hits negatives.
Any ideas welcome!