I wish to ask how would I go about creating a single weapon into the layout that the player has equipped/bought and I only want 1 weapon to be loaded onto the layout at a time because I don't want a lot of memory in the graphics processor taken up by unused entities/sprites.
I wish to make the game work something like this:
On start of layout: System.CreatePlayer(x, y) then System.CreateWeapon(x, y) then System.CreateArmour(x, y) BUT the issue is how would I make the system only create the specific weapon without having to have all the weapons and armour loaded into the game at one time?
It would be great if anyone who has surpassed this issue before could quickly post a response on how to fix this soon
