I'm making a game in XNA called The Adventure Of The Very Hairy Princess Fairy. The game is a "Sidescroller/Platformer" like mario but there is a problem. How do I attach a weapon to the player texture and add animations so it looks like the player is holding the gun and It's not a floating image in front of the player? The player can kill with things like chainsaws playing as a very hairy princess fairy.
I'm assuming you are using the PSK, correct?
If you are, one thing to do would be to add another animation to the player class. Have an animation for the weapon, with states for idle and attacking. draw them right after you do your player. If you don't want the weapon to show up when you aren't attacking, leave the idle animation as a blank canvas.
Another option is to just add an animation to the player for attacking directly. Add a bool, isAttacking, and when it is true, play the attack animation.