Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

please help animator sprite combo

Discussion in '2D' started by aymenopa, Sep 1, 2015.

  1. aymenopa

    aymenopa

    Joined:
    Jan 1, 2015
    Posts:
    1
    first of all i'm really sorry about my bad english
    please i want to make attack combo in sprite while pressing the button like naruto game but animation sprites in attack1.anim and i have animator like what happen in 00:07 in this video

    how to do that please
    like (i suppose X it's the button of attack series) X=nextframe X=nextframe X=nextframe X=nextframe when he stop for few time back again to begin

    1.JPG 2.JPG
     

    Attached Files:

    • 1.JPG
      1.JPG
      File size:
      37.4 KB
      Views:
      755
    • 1.JPG
      1.JPG
      File size:
      37.4 KB
      Views:
      680
    • 2.JPG
      2.JPG
      File size:
      41.1 KB
      Views:
      698
    Last edited: Sep 1, 2015
  2. vakabaka

    vakabaka

    Joined:
    Jul 21, 2014
    Posts:
    1,153
    maybe every frame is just one animator state ? And then for every punch make something like: if (Input.GetKeyDown (X) && anim.GetBool ("Attack1")) anim.SetBool ("Attack2", true);

    or try blendtree. http://docs.unity3d.com/Manual/class-BlendTree.html. I didnot used it, i think you can make one frame for state, and then change the state, if you tap quickly X.
     
  3. J0hn4n

    J0hn4n

    Joined:
    May 11, 2015
    Posts:
    24
    Make a array sprite anim, its more simpler.