# Problems with walls

**URL:** <https://forum.makecode.com/t/problems-with-walls/44699>\
**Category:** Help\
**Created:** [June 27, 2026, 4:29pm UTC](https://forum.makecode.com/t/problems-with-walls/44699 "2026-06-27T16:29:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZRPCoding](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/zrpcoding/32/32659_2.png) [@ZRPCoding](https://forum.makecode.com/u/ZRPCoding)\
**Post date:** [June 27, 2026, 4:29pm UTC](https://forum.makecode.com/t/problems-with-walls/44699/1 "2026-06-27T16:29:44Z")

</div>

Having problems with walls. The enimies get through walls and it’s ruining the game here is the project:

> **[land of wars - Copy - Copy - Copy](https://arcade.makecode.com/S69894-60757-67957-98060)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![BitBot](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bitbot/32/33272_2.png) [@BitBot](https://forum.makecode.com/u/BitBot)\
**Post date:** [June 27, 2026, 7:49pm UTC](https://forum.makecode.com/t/problems-with-walls/44699/2 "2026-06-27T19:49:52Z")

</div>

It’s because you have

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/d/c/dc53bd983f9c6dddba6bb5b79e6e344982cf8663.png)

There’s no reason to have it with a tilemap, so I deleted it.

here is your fixed code.

> **[land of wars - Copy - Copy - Copy](https://arcade.makecode.com/17146-99892-71060-60564)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)\
**Post date:** [June 27, 2026, 7:49pm UTC](https://forum.makecode.com/t/problems-with-walls/44699/3 "2026-06-27T19:49:56Z")

</div>

the issue is that they are spawning inside walls. delete these blocks and it will be fine:

 ![markup_1000008040](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/9/d/9d85c8d035c494539bc9e260e2df268ec3dff748.png)

---

<div class="post-metadata">

**Author:** ![redSprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsprite/32/34262_2.png) [@redSprite](https://forum.makecode.com/u/redSprite)\
**Post date:** [June 27, 2026, 7:53pm UTC](https://forum.makecode.com/t/problems-with-walls/44699/4 "2026-06-27T19:53:05Z")

</div>

You don’t want sprites to spawn on top of walls, otherwise walls won’t apply to them until they exit the tiles with walls.  
Also disable stay in screen for sprites, they can clip into walls and disobey the laws of physics.

---

<div class="post-metadata">

**Author:** ![ZRPCoding](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/zrpcoding/32/32659_2.png) [@ZRPCoding](https://forum.makecode.com/u/ZRPCoding)\
**Post date:** [June 28, 2026, 5:21pm UTC](https://forum.makecode.com/t/problems-with-walls/44699/5 "2026-06-28T17:21:27Z")

</div>

Thank you.😇
