Basically I have a character sprite that has a weapon sprite attach to it and I want to make it so that when the player gets some coins in game they can go to the main menu, enter the shop and then switch the weapon sprite with another weapon sprite after they buy a weapon using the coins they collect in-game.
The main problem is I'm not sure how to do this. Would I have one weapon with a bunch of animations? Or would I have different sets of weapon sprites all with seperate animations? Also how would the choices made in the menu store transfer to the game?
I would appreciate any pseudo code, examples, logic or even maybe an idea on how I can do this so I could try it out