Setting up in game currency values for shop. Value setting?

For a game, I am making I have a store that you can buy upgrades on using ingame currency. How do I set it so let’s say… if the avalible currency is less than X amount the upgrade can’t be purchased.
If anyone can help me out it would be much appreciated.

Use TinyDb to store your currency and then use if/else statements to check if value is bigger or smaller than required amount.

2 Likes

Use firebase to Store your currency, i do not recommend you to use tiny db because it’s not safe

3 Likes

Umm please tell me why TinyDb is not safe.
BTW, if you want to store currency online use Firebase, but it is a bit more complicated. Not recommending if you are a new user

1 Like

because if you save it in local there are programs with which you can edit those values ​​easily as for example CheatDroid

2 Likes

Thank you so much for this input I would never have known that had you not mentioned it.

You’re welcome, I’m glad I could help you