# Raycasting Not Working

**URL:** <https://forum.makecode.com/t/raycasting-not-working/26707>\
**Category:** Help\
**Created:** [February 6, 2024, 12:14am UTC](https://forum.makecode.com/t/raycasting-not-working/26707 "2024-02-06T00:14:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CodeTycoon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codetycoon/32/27588_2.png) [@CodeTycoon](https://forum.makecode.com/u/CodeTycoon)\
**Post date:** [February 6, 2024, 12:14am UTC](https://forum.makecode.com/t/raycasting-not-working/26707/1 "2024-02-06T00:14:14Z")

</div>

Hi everybody! I know this is only my second post, but I am really confused about something. The raycasting extension is not working for me. it used to work for me, but now when I try to make a raycasting game, it doesn’t work. Here is an example:

> **[Raycasting test](https://arcade.makecode.com/S19867-09047-64130-16673)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Am I doing something wrong or is this some wierd glitch? Does this work like a raycasting game for you guys? Thanks!

---

<div class="post-metadata">

**Author:** ![CreativeUsername](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/creativeusername/32/9601_2.png) [@CreativeUsername](https://forum.makecode.com/u/CreativeUsername)\
**Post date:** [February 6, 2024, 5:49pm UTC](https://forum.makecode.com/t/raycasting-not-working/26707/2 "2024-02-06T17:49:45Z")

</div>

Set the tiles on the tilemap to be walls

---

<div class="post-metadata">

**Author:** ![Mr.Someone](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mr.someone/32/23300_2.png) [@Mr.Someone](https://forum.makecode.com/u/Mr.Someone)\
**Post date:** [February 6, 2024, 11:56pm UTC](https://forum.makecode.com/t/raycasting-not-working/26707/3 "2024-02-06T23:56:35Z")

</div>

Try using this:

> **[Raycasting test](https://arcade.makecode.com/S99022-41512-48958-99764)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![CodeTycoon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codetycoon/32/27588_2.png) [@CodeTycoon](https://forum.makecode.com/u/CodeTycoon)\
**Post date:** [February 7, 2024, 6:26pm UTC](https://forum.makecode.com/t/raycasting-not-working/26707/4 "2024-02-07T18:26:27Z")

</div>

Thanks its working now
