How can I make my character shoot?
Hi, I'm new to this, and I'm trying to make a 2D Platformer game. My character already has a idle animation, a running animation, a jump/fall animation and everything works perfectly. What I would now like to add is a shooting animation, that starts from the idle/run animation when I click mouse 1. The animation needs to loop if continuously pressing mouse 1 (its a 3 frame animation shoot/recoil/back to aim position). There wont be any bullet animations, just a raycast.
What script should I write, so that my character shoots when I press mouse 1, and starts the shooting animation. The character does NOT have the weapon in hand when in an idle/run animation.
Any help would be appreciated.
Good day. You ask for severeal things at once. I think you should watch some basic tutorial with exemples of shooting
Your answer
Follow this Question
Related Questions
Don't know how to end animation of shooting ! (code) Please help ! 0 Answers
Animation transition locks up temporarily during runtime of exe, works fine in editor 0 Answers
Patrolling enemy not shooting at player 2d platformer 0 Answers
Need to press key 2 times to shoot 0 Answers
Animator in child receives float from parent but animation doesn't change when condition is met. 1 Answer