# Interactive Card Visibility

**URL:** <https://forum.code.org/t/interactive-card-visibility/38048>\
**Category:** CS Discoveries\
**Tags:** csd-unit-3\
**Created:** [May 3, 2023, 1:18pm UTC](https://forum.code.org/t/interactive-card-visibility/38048 "2023-05-03T13:18:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![langilla1](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@langilla1](https://forum.code.org/u/langilla1)\
**Post date:** [May 3, 2023, 1:18pm UTC](https://forum.code.org/t/interactive-card-visibility/38048/1 "2023-05-03T13:18:39Z")

</div>

My student wants the sprites (Cane, Snowman and Present) to disappear when the space bar is pressed. Help please!

> **[Check out what I made](https://studio.code.org/projects/gamelab/R4-baqN11mlQuM_sAfSWj9J1TD18mHPdJanx9uWQM6Q)**
>
> 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 3, 2023, 2:43pm UTC](https://forum.code.org/t/interactive-card-visibility/38048/2 "2023-05-03T14:43:19Z")

</div>

@langilla1,

I see that they’ve used the visible blocks to try and make that happen and in fact, it is happening, but the “old” instances of the objects are still on the screen, so they still appear to be visible.

To solve this issue, make sure you are drawing a background inside the draw loop. This will cover the old instances of the “now invisible” objects. Hope that helps.

Mike

---

<div class="post-metadata">

**Author:** ![langilla1](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@langilla1](https://forum.code.org/u/langilla1)\
**Post date:** [May 3, 2023, 4:24pm UTC](https://forum.code.org/t/interactive-card-visibility/38048/3 "2023-05-03T16:24:22Z")

</div>

That worked perfect- thanks!
