# How to play two 2D animations at the same time?

I have a "burn" animation and a "poison" animation for when the player is burnt or poisoned respectively. I want to play both animations at the same time when the player is both burnt and poisoned. From what I've read this is supposed to be possible with layers, but I can't get it to work.

• How have you tried accomplishing this with layers so far? How do the results differ from what you want? – DMGregory Nov 5 at 19:19

Yes indeed it is possible with Layers.

1. First create two layer in animator.

2. Then increase layer "Wight" to 1.

3. Now set animators like this.

4. Not Add Two triggers to parameters for may be "Poison" and "Burn":

5. And assign those parameters to Transitions buy click on transition arrow And also do Transition setting to your need.

6. Now At last step set triggers like:

-If poison then:

     NPCAnimator.SetTrigger("Poison");


-If Burn then:

     NPCAnimator.SetTrigger("Burn");


-If Both then:

     NPCAnimator.SetTrigger("Poison");
NPCAnimator.SetTrigger("Burn");


I hop this will help.