# 3d Flashlight

**URL:** <https://forum.makecode.com/t/3d-flashlight/19859>\
**Category:** Help\
**Created:** [May 12, 2023, 5:26pm UTC](https://forum.makecode.com/t/3d-flashlight/19859 "2023-05-12T17:26:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![The\_Proattheg](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/the_proattheg/32/5929_2.png) [@The\_Proattheg](https://forum.makecode.com/u/The_Proattheg)\
**Post date:** [May 12, 2023, 5:26pm UTC](https://forum.makecode.com/t/3d-flashlight/19859/1 "2023-05-12T17:26:25Z")

</div>

I’m working on a 3d game using the raycasting extension and I’m planning on adding a first person flashlight. Any ideas? So far, the closest thing I have to an actual flashlight would be using the lantern extension, but for some reason the lantern effect doesn’t look the same as it used to on my old 3d game with a flashlight. Can anyone help on making one?

---

<div class="post-metadata">

**Author:** ![labfox29](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/labfox29/32/9252_2.png) [@labfox29](https://forum.makecode.com/u/labfox29)\
**Post date:** [May 15, 2023, 4:08pm UTC](https://forum.makecode.com/t/3d-flashlight/19859/2 "2023-05-15T16:08:52Z")

</div>

What about a UI that looks like a lantern with an animation.

---

<div class="post-metadata">

**Author:** ![meeeeeeeep1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/meeeeeeeep1/32/7912_2.png) [@meeeeeeeep1](https://forum.makecode.com/u/meeeeeeeep1)\
**Post date:** [May 15, 2023, 4:58pm UTC](https://forum.makecode.com/t/3d-flashlight/19859/3 "2023-05-15T16:58:37Z")

</div>

You might want to try [this](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/209?) and edit the code
