Hi, I'm not asking to fix what I have since it's not well made, but I'd like to hear some options on how to make this better?
I'm using way too much code to make a simpler upgrade UI that there must be a better way.
This is what I have right now and it's only to upgrade 3 weapons and health / shields.
I'm needing to have to swap weapons and more stuff down the road and the way it is now it's going to be hell.
My foundation of all this may just not be the right way to go aswell.
Right now I have all my weapon stats in instance variable on a sprite for each weapon. Once I add more weapons for the player and enemy it's going to get complicated, I'm using the same weapons for the player as the enemies right now.
The system I have now is this:
The UI pops up and I set all the variables to a tmp variable incase they reset the changes.
Once they accept (close the UI) I then set the tmp variables back to the spriet that the player uses.