# "Glitchy" Sprites

**URL:** <https://forum.code.org/t/glitchy-sprites/27204>\
**Category:** Coding and Debugging Help\
**Created:** [June 5, 2019, 1:41pm UTC](https://forum.code.org/t/glitchy-sprites/27204 "2019-06-05T13:41:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![swysocki](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@swysocki](https://forum.code.org/u/swysocki)\
**Post date:** [June 5, 2019, 1:41pm UTC](https://forum.code.org/t/glitchy-sprites/27204/1 "2019-06-05T13:41:35Z")

</div>

Hi there! One of my students is trying to make a game where her character jumps up onto clouds. We have the code working the way she wants but the sprites are “glitching”. They look like they are redrawing themselves (as they would without a background) but without the whole trail of previous drawings. I’ll attach her code here, can anyone give us any pointers?

> **[Check out what I made](https://studio.code.org/projects/gamelab/W2Yjd0LB3RP1_IzcZ1nRyn2SNj_7jrNXuFqYU8qJNn8)**
>
> I wrote the code myself with Code.org

---

<div class="post-metadata">

**Author:** ![george.zhang](https://avatars.discourse-cdn.com/v4/letter/g/6f9a4e/32.png) [@george.zhang](https://forum.code.org/u/george.zhang)\
**Post date:** [June 18, 2019, 8:13pm UTC](https://forum.code.org/t/glitchy-sprites/27204/4 "2019-06-18T20:13:11Z")

</div>

Hello,

It looks like it’s not the code itself that is a problem, but there is something weird happening in the animation of the background. If you go to the animation for the background, if you hover over the the icon you can see that you can duplicate the frame. Click duplicate and then delete the original background frame and that should solve your problem. It appears that there’s two frames in the one, original background frame. So nothing wrong with the code, just something weird happening with frames.

Hope this helps!
