Hello everyone. I am working on a top down twin-stick shooter with 4 weapons. The default weapon is the assault rifle and then throughout the game the weapon randomly switches to one of the three other “special” weapons and then switches back to the AR. Inside my firing method, I have been working with a switch case to try and select which projectiles are fired in relation to the player’s current gun. Do any of you know a way of making this happen? I am almost all out of ideas.
When you attach your weapon to your character (or, at least, when you change it ), store a variable (an int from to 0 to 3 for example) and use it on your shoot event beginning to select which projectile spawn and where spawn if spawn locations are different.
Thanks! I will give it a try and report back.