# Animation Tabs Working - But sprite not animating in draw loop

**URL:** <https://forum.code.org/t/animation-tabs-working-but-sprite-not-animating-in-draw-loop/36228>\
**Category:** Coding and Debugging Help\
**Created:** [April 25, 2022, 5:31pm UTC](https://forum.code.org/t/animation-tabs-working-but-sprite-not-animating-in-draw-loop/36228 "2022-04-25T17:31:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ktorsak](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/ktorsak/32/7426_2.png) [@ktorsak](https://forum.code.org/u/ktorsak)\
**Post date:** [April 25, 2022, 5:31pm UTC](https://forum.code.org/t/animation-tabs-working-but-sprite-not-animating-in-draw-loop/36228/1 "2022-04-25T17:31:06Z")

</div>

Our project:

([Game Lab - Code.org](https://studio.code.org/projects/gamelab/OmO8QiVMQNux6CnsBQVT8zYCvi9d-Bu4NPc-P47Lx30))

Above is a link to a remix of a student’s project. In the animation tab he has created a running stickman that animates with 6 frames. It appears to work in the animations tab, however, it does not appear to animate in the draw loop.

We have tried ensuring there is a background and a drawSprites(); block and called the sprite in the draw loop but it still doesn’t appear to animate.

Thanks in advance for your help!

---

<div class="post-metadata">

**Author:** ![mwood](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mwood/32/4941_2.png) [@mwood](https://forum.code.org/u/mwood)\
**Post date:** [April 25, 2022, 8:49pm UTC](https://forum.code.org/t/animation-tabs-working-but-sprite-not-animating-in-draw-loop/36228/2 "2022-04-25T20:49:12Z")

</div>

@ktorsak,

I’ve seen this happen before, but not sure exactly what causes it. To fix it, I went to your animation (stickmanrunning) and added another frame at the end. I chose “draw my own” and then instead of drawing anything, I just deleted the frame.

Then, when I went back to the code, it worked.

Not sure why it works, but I basically had to change the animation (without changing the animation) before I could get it to work.

Good luck!

Mike

---

<div class="post-metadata">

**Author:** ![ktorsak](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/ktorsak/32/7426_2.png) [@ktorsak](https://forum.code.org/u/ktorsak)\
**Post date:** [April 25, 2022, 8:53pm UTC](https://forum.code.org/t/animation-tabs-working-but-sprite-not-animating-in-draw-loop/36228/3 "2022-04-25T20:53:38Z")

</div>

That’s awesome, thank you!!
