So I was trying to make weapons and name the via an Instance variable(kinda like an id). But it worked when it was on id 0 while it didn't work when it was at the correct id. Pls help!
Develop games in your browser. Powerful, performant & highly capable.
Here is a demo I made a long time ago. It's not very good, but you may get some useful ideas from it:
howtoconstructdemos.com/top-down-view-shooter-collect-swap-and-fire-different-weapons
And this example shows how to switch between primary and secondary weapons:
howtoconstructdemos.com/collect-weapons-and-swap-between-primary-and-secondary-weapons-in-a-platformer-game
Thanks dude!