# Running multiple animations on a sprite

**URL:** <https://forum.makecode.com/t/running-multiple-animations-on-a-sprite/6540>\
**Category:** Help\
**Created:** [March 4, 2021, 3:30pm UTC](https://forum.makecode.com/t/running-multiple-animations-on-a-sprite/6540 "2021-03-04T15:30:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jloosem](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@jloosem](https://forum.makecode.com/u/jloosem)\
**Post date:** [March 4, 2021, 3:30pm UTC](https://forum.makecode.com/t/running-multiple-animations-on-a-sprite/6540/1 "2021-03-04T15:30:44Z")

</div>

hi,  
is there anyway I can stop an animation an run another. I have an animation logic system set up to do a run/walk animation whenever my Sprite moves in that direction. what I am trying to do it when A is pressed activate my sword attack animation but it seems like they both collide and glitch out due to my Sprite doing the running animation because its moving in that certain direction.

if anyone has any ideas that would be great, I have provided a screenshot and link of the code.

 ![Screenshot 2021-03-04 082516](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/3/323e82975bda37463438e7ac396876443fc14f0e.png)

> **[Dungeon Master](https://arcade.makecode.com/50427-22851-01735-13870)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [March 4, 2021, 4:10pm UTC](https://forum.makecode.com/t/running-multiple-animations-on-a-sprite/6540/2 "2021-03-04T16:10:14Z")

</div>

There is an animation extension that makes it easier:

> **[riknoll/character-animations](https://github.com/riknoll/character-animations)**
>
> Contribute to riknoll/character-animations development by creating an account on GitHub.

Just click on advanced, click on extensions, paste this url above to the search bar in the extensions menu, and click on the one called “character-animations”

---

<div class="post-metadata">

**Author:** ![jloosem](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@jloosem](https://forum.makecode.com/u/jloosem)\
**Post date:** [March 4, 2021, 4:31pm UTC](https://forum.makecode.com/t/running-multiple-animations-on-a-sprite/6540/3 "2021-03-04T16:31:14Z")

</div>

so with this extension what block would stop one animation and run the other?

im just seeing the change states.

---

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [March 4, 2021, 4:37pm UTC](https://forum.makecode.com/t/running-multiple-animations-on-a-sprite/6540/4 "2021-03-04T16:37:32Z")

</div>

There are other blocks that say “set state to”

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [March 4, 2021, 5:45pm UTC](https://forum.makecode.com/t/running-multiple-animations-on-a-sprite/6540/5 "2021-03-04T17:45:37Z")

</div>

In the `Animation` category there is a `stop [all] animations on [mySprite]`:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/e9557da2fde1229e7d13c708a915eaa644cfd8ab.png)
