# How To Define Wall Tile On Arcade Game

**URL:** https://forum.makecode.com/t/how-to-define-wall-tile-on-arcade-game/3979
**Category:** Arcade
**Created:** [October 20, 2020, 8:14am UTC](https://forum.makecode.com/t/how-to-define-wall-tile-on-arcade-game/3979 "2020-10-20T08:14:37Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jimjo](https://avatars.discourse-cdn.com/v4/letter/j/90ced4/32.png) [@jimjo](https://forum.makecode.com/u/jimjo)
#### Post date: [October 20, 2020, 8:14am UTC](https://forum.makecode.com/t/how-to-define-wall-tile-on-arcade-game/3979/1 "2020-10-20T08:14:37Z")

</div>

Hello all, I am happy I can make arcade game based on this tutorial

[![](https://img.youtube.com/vi/CPkC37FzmnU/maxresdefault.jpg "How to Make a Platformer Game [Part 3: Wall jumping, more levels, and fireballs]") ](https://www.youtube.com/watch?v=CPkC37FzmnU)

But when finish I found things to be improved for how to define wall.  
In the youtube video I did not find how to define a wall so cat can only climb on wall tile, not climb on ground tile or at the edge of screen.  
Does anybody know how to make cat can only climb on wall tile ? Do we have block on Scene “Set Wall to Defined Image Tile” ?  
Thank you in advance for your help.

 ![Cat Climb Wall](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/0/0eb732534e68e603162c5c85f7ce755fc25b390f.jpeg)

---

<div class="post-metadata">

### Author: ![cosmoscowboy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cosmoscowboy/32/1718_2.png) [@cosmoscowboy](https://forum.makecode.com/u/cosmoscowboy)
#### Post date: [October 20, 2020, 2:54pm UTC](https://forum.makecode.com/t/how-to-define-wall-tile-on-arcade-game/3979/2 "2020-10-20T14:54:11Z")

</div>

Have you all watched all THREE YouTube films on making the game? In one of the films he explains when overlapping a certain tile and the cats velocity is negative (moving up) that it can attach to the wall; that is if I remember correctly.

---

<div class="post-metadata">

### Author: ![shakao](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/shakao/32/113_2.png) [@shakao](https://forum.makecode.com/u/shakao)
#### Post date: [October 20, 2020, 4:55pm UTC](https://forum.makecode.com/t/how-to-define-wall-tile-on-arcade-game/3979/3 "2020-10-20T16:55:39Z")

</div>

Hm, unfortunately we don’t differentiate the “walls” on the side of the screen from the walls inside your tilemap. I think the easiest thing for you to do would be to use the “location” inside the “on sprite hit wall” block to check that the cat is next to an allowed tile. That might look something like this:

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/4/4bcf8727ca184d3355c3e9efe49ae34ae991ee41.png)

Code here: [https://makecode.com/\_3Du3EKXcXdaF](https://makecode.com/_3Du3EKXcXdaF)

Hope that helps!

---

<div class="post-metadata">

### Author: ![jimjo](https://avatars.discourse-cdn.com/v4/letter/j/90ced4/32.png) [@jimjo](https://forum.makecode.com/u/jimjo)
#### Post date: [October 21, 2020, 3:01am UTC](https://forum.makecode.com/t/how-to-define-wall-tile-on-arcade-game/3979/4 "2020-10-21T03:01:09Z")

</div>

Yes I have watched it, but it is not make any difference how to separate between ground and wall tile. All tile consider as wall. That is why the cat can climb to ground tile also.

---

<div class="post-metadata">

### Author: ![jimjo](https://avatars.discourse-cdn.com/v4/letter/j/90ced4/32.png) [@jimjo](https://forum.makecode.com/u/jimjo)
#### Post date: [October 21, 2020, 3:02am UTC](https://forum.makecode.com/t/how-to-define-wall-tile-on-arcade-game/3979/5 "2020-10-21T03:02:07Z")

</div>

OK I will try this. Thank you for your help.
