# How do I make objects ignore walls?

**URL:** <https://forum.makecode.com/t/how-do-i-make-objects-ignore-walls/33759>\
**Category:** Help\
**Tags:** game\
**Created:** [February 10, 2025, 6:08pm UTC](https://forum.makecode.com/t/how-do-i-make-objects-ignore-walls/33759 "2025-02-10T18:08:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wally](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/wally/32/19737_2.png) [@Wally](https://forum.makecode.com/u/Wally)\
**Post date:** [February 10, 2025, 6:08pm UTC](https://forum.makecode.com/t/how-do-i-make-objects-ignore-walls/33759/1 "2025-02-10T18:08:46Z")

</div>

I am making a platformer game with enemies, and one of those enemies is a ghost. I want to make said ghost ignore walls while not destroying them. Is there a way to make its so the ghost ignores walls and passes through them? Thanks!

---

<div class="post-metadata">

**Author:** ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)\
**Post date:** [February 10, 2025, 6:10pm UTC](https://forum.makecode.com/t/how-do-i-make-objects-ignore-walls/33759/2 "2025-02-10T18:10:06Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/6/0/60fc3c7e0f14abb846399474a1988b0c6ef971b5.png)  
this block in the sprites category has a lot of options; you want the bottom option, “ghost through walls”  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/a/a/aab03ec8f2b0274dcc5dd494e81c0a9f3311e5a6.png)

---

<div class="post-metadata">

**Author:** ![Wally](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/wally/32/19737_2.png) [@Wally](https://forum.makecode.com/u/Wally)\
**Post date:** [February 10, 2025, 6:38pm UTC](https://forum.makecode.com/t/how-do-i-make-objects-ignore-walls/33759/3 "2025-02-10T18:38:07Z")

</div>

thanks a lot!
