# Interactive Card - Disappearing Sprites

**URL:** <https://forum.code.org/t/interactive-card-disappearing-sprites/39433>\
**Category:** Uncategorized\
**Tags:** csd-unit-3\
**Created:** [May 8, 2024, 12:12pm UTC](https://forum.code.org/t/interactive-card-disappearing-sprites/39433 "2024-05-08T12:12:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kabraham](https://avatars.discourse-cdn.com/v4/letter/k/51bf81/32.png) [@kabraham](https://forum.code.org/u/kabraham)\
**Post date:** [May 8, 2024, 12:12pm UTC](https://forum.code.org/t/interactive-card-disappearing-sprites/39433/1 "2024-05-08T12:12:55Z")

</div>

Good morning,

I have a student who is having trouble making his sprites disappear. Could you take a look at this code and see if you can find where we are going wrong?

Thanks.

> **[Check out what I made](https://studio.code.org/projects/gamelab/2nnqKOByIWn-xkqGfvbVWChyy34Kktz-EilN-4DNJHU)**
>
> I wrote the code myself with Code.org

---

<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:** [May 8, 2024, 10:44pm UTC](https://forum.code.org/t/interactive-card-disappearing-sprites/39433/2 "2024-05-08T22:44:45Z")

</div>

@kabraham,

The “create sprite” blocks should be outside of the draw loop (above the draw loop.)

As is right now, it’s making a new sprite every time through the draw loop which defeats the purpose of hiding it.

Hope this helps!

Mike
