Search Unity

Stop Animations Queueing In Controller

Discussion in 'Animation' started by Yellowy101, Aug 20, 2021.

  1. Yellowy101

    Yellowy101

    Joined:
    Apr 10, 2021
    Posts:
    3
    I'm making a 2d platformer with similar style to Hollow Knight, but my main problem is the when an animation is set to play when another is already going, it gets queued and plays when the other animation stops. In more detail: if the character is running, and space is pressed (which triggers attack) the attack trigger in the animation controller will continue to stay triggered until the character stops running, and then attacks. What I'm looking for is to have the trigger turn on, and off while the run animation is going, but not interfering with the run, causing it to not queue. Sorry for writing so much but I want to be very descriptive in my problem.
     
  2. Unrighteouss

    Unrighteouss

    Joined:
    Apr 24, 2018
    Posts:
    599
    Hey,

    I'm 99.9% sure the issue is that you have "Has Exit Time" checked for your animation transitions. Make sure that it's unchecked for each transition.
     
    KalOBrien likes this.
  3. KalOBrien

    KalOBrien

    Administrator

    Joined:
    Apr 20, 2021
    Posts:
    89
    Unrighteouss likes this.
  4. Yellowy101

    Yellowy101

    Joined:
    Apr 10, 2021
    Posts:
    3
    Thank you! I just saw this after a break from designing and really appreciate the response.
     
    KalOBrien likes this.