After my character, who is not equipped with anything, picks up an item, a gun, I want to transform it into a character equipped with a gun. How can I change my character to have the item equipped after picking it up?
Develop games in your browser. Powerful, performant & highly capable.
In general you would use a global variable, set to 0 could be default and unequipped and set it to 1 means you have the weapon equipped. It depends on so many things though, if you change the animations of the character or you pin a gun to the character, and if you can equip different types of weapons or if it's a very simple game where you equip/unequip a gun.