Hey guys, its been a long time since I have been consistently been on here, and that is because I was working on a huge project/game I thought would be cool, called Warheads: Ballistic (NO this is not an advertisement and YES it’s kid-friendly)
So basically I am trying to make a buying and upgrade system, where the player will go to their arsenal and press a button, opening a popup/menu. Now as the zapper is the starter weapon, they will already have it, and I already have a property checking if the player has the item.
What I am trying to do, is when the player buys an upgrade their current zapper, or whatever weapon they have, will be taken away and replaced with a new one. But to prevent any possible bugs/glitches or wasted money, I want to be able to check if the player already has an upgrade and is trying buy it again, they will get a message saying that they already bought the item, and the money spent will be given back to them.
I have tried using properties for every single upgrade, but I figured that would be to much memory usage, plus it was confusing. So please, helping would be deeply appreciated .
Thank you!