# Wanna add a shadow around my charcters vision

**URL:** <https://forum.makecode.com/t/wanna-add-a-shadow-around-my-charcters-vision/37532>\
**Category:** Help\
**Tags:** extension\
**Created:** [June 25, 2025, 10:03pm UTC](https://forum.makecode.com/t/wanna-add-a-shadow-around-my-charcters-vision/37532 "2025-06-25T22:03:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rubberducky271](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rubberducky271/32/9685_2.png) [@Rubberducky271](https://forum.makecode.com/u/Rubberducky271)\
**Post date:** [June 25, 2025, 10:03pm UTC](https://forum.makecode.com/t/wanna-add-a-shadow-around-my-charcters-vision/37532/1 "2025-06-25T22:03:27Z")

</div>

im tryna make a horror game but tbh, its not _scary_ enough. I need to add darkness but using the lantern affect with raycasting makes a massive issue. anyone know a fix?

 ![Screenshot 2025-06-25 at 2.35.44 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/9/9/995bd23cc7591469fb898246040aaaf5a9217e08.jpeg)

---

<div class="post-metadata">

**Author:** ![Seal\_dev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/seal_dev/32/33723_2.png) [@Seal\_dev](https://forum.makecode.com/u/Seal_dev)\
**Post date:** [June 25, 2025, 11:18pm UTC](https://forum.makecode.com/t/wanna-add-a-shadow-around-my-charcters-vision/37532/2 "2025-06-25T23:18:40Z")

</div>

you could use a sprite that is relative to the camera that wraps around the screen  
(use a background with a blank circle in the middle)

---

<div class="post-metadata">

**Author:** ![Reflectfr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/reflectfr/32/32515_2.png) [@Reflectfr](https://forum.makecode.com/u/Reflectfr)\
**Post date:** [June 26, 2025, 5:22pm UTC](https://forum.makecode.com/t/wanna-add-a-shadow-around-my-charcters-vision/37532/3 "2025-06-26T17:22:25Z")

</div>

how do i do lantern effect..?

---

<div class="post-metadata">

**Author:** ![Rune](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rune/32/18951_2.png) [@Rune](https://forum.makecode.com/u/Rune)\
**Post date:** [June 26, 2025, 6:10pm UTC](https://forum.makecode.com/t/wanna-add-a-shadow-around-my-charcters-vision/37532/4 "2025-06-26T18:10:35Z")

</div>

Lantern doesn’t work with raycasting.

Seal’s option is good, but if you want something like the lantern effect you could put a dithered black sprite a little bit away from the player so it’s harder to see that far away.

---

<div class="post-metadata">

**Author:** ![Rubberducky271](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rubberducky271/32/9685_2.png) [@Rubberducky271](https://forum.makecode.com/u/Rubberducky271)\
**Post date:** [June 26, 2025, 6:11pm UTC](https://forum.makecode.com/t/wanna-add-a-shadow-around-my-charcters-vision/37532/5 "2025-06-26T18:11:15Z")

</div>

Theres some lantern extensions, you can search them up and js type the name in teh search bar for extensions this is the easier one to use, but they have another called multilights thats a bit more difficult but still works pretty easy.

[https://github.com/riknoll/pxt-lantern](https://github.com/riknoll/pxt-lantern) (easy one)

WoofWoofCodes/lanterns (type this one in the search bar for like other cool stuff)

---

<div class="post-metadata">

**Author:** ![Rubberducky271](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rubberducky271/32/9685_2.png) [@Rubberducky271](https://forum.makecode.com/u/Rubberducky271)\
**Post date:** [June 27, 2025, 4:51am UTC](https://forum.makecode.com/t/wanna-add-a-shadow-around-my-charcters-vision/37532/6 "2025-06-27T04:51:35Z")

</div>

oof, thanks for the advice. I think I found a workaround it though.
