- Home /
 
 
               Question by 
               mwozniak93 · Sep 21, 2015 at 09:53 AM · 
                animation2danimatorsprites2d animation  
              
 
              2d Animation sprites - right way?
Hi! I was reading about animation in 2d for sprites, and I noticed that people reallu complicate this. I mean some of them write about 200 lines length component to control simple 2d character.
My question is : is the way I handle it correct and easy enough?
Here is what I do:
 //when want my character to shoot a fireball I do:
 void ShootFireball(){
 anim.setBool("IsShooting", true);
 
 // and then after I want to stop shooting fireball I just do :
 Invoke("stopShooting",0.7f) // --> time visible in animation window how long this anim should last
 }
 void stopShooting(){
 anim.setBool("IsShooting",false);
 }
 
               And that's it. However I am really confused after reading how people makes it much more complicated than this...
               Comment
              
 
               
              Your answer
 
             Follow this Question
Related Questions
2D Animation does not start 1 Answer
How to show two 2D animations at the same time? 1 Answer
Animating hair over sprite animation 0 Answers
AttachUnitySprite not available - Spine Unity 1 Answer
Is there a way to optimize animators? 3 Answers