Change weapons in hand

If there are multiple instances of a weapon in the scene, then instead of deleting them try hiding the weapon, moving it off screen (if the layer is non-scrolling) or moving the weapon to a hidden layer.

Alternatively, you could try keeping track of the weapon via some sort of id and storing the id with the ammo left in a structure array.

1 Like