# Adding an invisible wall

**URL:** <https://forum.code.org/t/adding-an-invisible-wall/32386>\
**Category:** CS Discoveries\
**Tags:** csd-unit-3-lesson-18\
**Created:** [March 4, 2020, 9:14pm UTC](https://forum.code.org/t/adding-an-invisible-wall/32386 "2020-03-04T21:14:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![burnsk](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@burnsk](https://forum.code.org/u/burnsk)\
**Post date:** [March 4, 2020, 9:14pm UTC](https://forum.code.org/t/adding-an-invisible-wall/32386/1 "2020-03-04T21:14:31Z")

</div>

//Help with student who would like to add an “Invisible wall” pushing the sprite off the screen…

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

---

<div class="post-metadata">

**Author:** ![edavis](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/edavis/32/4927_2.png) [@edavis](https://forum.code.org/u/edavis)\
**Post date:** [March 5, 2020, 12:24am UTC](https://forum.code.org/t/adding-an-invisible-wall/32386/2 "2020-03-05T00:24:37Z")

</div>

Hi @burnsk,  
I’m wondering if you could give me just a little more information about what the student is expecting to happen. Which sprite(s) are they wanting the invisible wall to push? What controls do they want to include? I think we need just a little more information. Thanks!

---

<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:** [March 6, 2020, 12:54am UTC](https://forum.code.org/t/adding-an-invisible-wall/32386/3 "2020-03-06T00:54:46Z")

</div>

Agreed, perhaps if you had just a little more information on how it would work… (what sprites are being pushed off the screen and what conditions would cause that to happen). In principle, however, you could create a sprite and set its visibility to false and then use the [sprite.displace](https://studio.code.org/docs/gamelab/displace/) block to accomplish that purpose.

Let us know how we can help!

Mike

---

<div class="post-metadata">

**Author:** ![burnsk](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@burnsk](https://forum.code.org/u/burnsk)\
**Post date:** [March 9, 2020, 8:33pm UTC](https://forum.code.org/t/adding-an-invisible-wall/32386/4 "2020-03-09T20:33:13Z")

</div>

Thank you both. Student figured out what to do, realizing that the problem was understanding that how to view the checkered empty space and add collide so that the sprite would touch the invisible checkered part and sprite would be launched or disappear. [https://studio.code.org/projects/gamelab/Q75yf3XVOB0YuMvPKeHNVDQKtGYFOWtKQcROXbnRgA8](https://studio.code.org/projects/gamelab/Q75yf3XVOB0YuMvPKeHNVDQKtGYFOWtKQcROXbnRgA8)

---

<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:** [March 9, 2020, 9:41pm UTC](https://forum.code.org/t/adding-an-invisible-wall/32386/5 "2020-03-09T21:41:58Z")

</div>

Great! Glad they got it working!

Mike
