# Is there a way to code solid walls that a certain sprite can go trough?

**URL:** https://forum.makecode.com/t/is-there-a-way-to-code-solid-walls-that-a-certain-sprite-can-go-trough/35138
**Category:** Help
**Created:** [April 2, 2025, 5:21pm UTC](https://forum.makecode.com/t/is-there-a-way-to-code-solid-walls-that-a-certain-sprite-can-go-trough/35138 "2025-04-02T17:21:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Bilangus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bilangus/32/33219_2.png) [@Bilangus](https://forum.makecode.com/u/Bilangus)
#### Post date: [April 2, 2025, 5:21pm UTC](https://forum.makecode.com/t/is-there-a-way-to-code-solid-walls-that-a-certain-sprite-can-go-trough/35138/1 "2025-04-02T17:21:26Z")

</div>

Here i have a level of a little puzzle platformer ive been working on. The idea is to make it so only the Key goes trough the key block, and only the player goes trough the player block. Any way to code this?

> **[Tiny Threatening Tungeons](https://arcade.makecode.com/S88794-33895-56417-96979)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [April 2, 2025, 5:24pm UTC](https://forum.makecode.com/t/is-there-a-way-to-code-solid-walls-that-a-certain-sprite-can-go-trough/35138/2 "2025-04-02T17:24:03Z")

</div>

@Bilangus you might find this extension useful!

> [@\[Extension\] arcade-sprite-tilemaps](https://forum.makecode.com/t/extension-arcade-sprite-tilemaps/31444):
>
> Hey folks! Another day, another extension! This is one that @Sparks and I cooked up on Wednesday’s livestream. I present: [riknoll/arcade-sprite-tilemaps](https://github.com/riknoll/arcade-sprite-tilemaps)! This extension lets you set different tilemaps for different sprites. These tilemaps don’t get drawn to the screen, but they do let you set different walls and tiles to overlap for individual sprites. For example, you could use this extension to: Set different walls for the player and enemy sprites to limit the paths they can take when [p…](https://github.com/jwunderl/arcade-tilemap-a-star)

---

<div class="post-metadata">

### Author: ![Bilangus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bilangus/32/33219_2.png) [@Bilangus](https://forum.makecode.com/u/Bilangus)
#### Post date: [April 2, 2025, 5:27pm UTC](https://forum.makecode.com/t/is-there-a-way-to-code-solid-walls-that-a-certain-sprite-can-go-trough/35138/3 "2025-04-02T17:27:15Z")

</div>

ok wow that was fast i mean  
Thanks for the help! This should help alot with puzzle design now.
