# Flashlight help

**URL:** <https://forum.makecode.com/t/flashlight-help/40017>\
**Category:** Help\
**Tags:** game, extension\
**Created:** [October 27, 2025, 4:44am UTC](https://forum.makecode.com/t/flashlight-help/40017 "2025-10-27T04:44:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![headcrab\_games](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@headcrab\_games](https://forum.makecode.com/u/headcrab_games)\
**Post date:** [October 27, 2025, 4:44am UTC](https://forum.makecode.com/t/flashlight-help/40017/1 "2025-10-27T04:44:45Z")

</div>

So I’ve been working on a horror game, and I’m trying to have it rotate, but I cant figure it out, my game link is here if any of you can figure this out [https://arcade.makecode.com/S03654-82379-76372-22384](https://arcade.makecode.com/S03654-82379-76372-22384)

---

<div class="post-metadata">

**Author:** ![RoboVacDev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/robovacdev/32/29619_2.png) [@RoboVacDev](https://forum.makecode.com/u/RoboVacDev)\
**Post date:** [October 27, 2025, 4:59pm UTC](https://forum.makecode.com/t/flashlight-help/40017/2 "2025-10-27T16:59:44Z")

</div>

All I’ve got so far is to move the flashlight with the buttons. Here I set A to change by 16 whenever clicked. B is vice versa if you know what I mean. Also, welcome to the forums! It seems “MySprite” is the light source variable if that’s the problem.

---

<div class="post-metadata">

**Author:** ![redSprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsprite/32/34262_2.png) [@redSprite](https://forum.makecode.com/u/redSprite)\
**Post date:** [October 27, 2025, 5:58pm UTC](https://forum.makecode.com/t/flashlight-help/40017/3 "2025-10-27T17:58:30Z")

</div>

_Perhaps_ you forgot to define the “flashlight” variable in the first place?  
I defined it as “flashlight attached to ‘mySprite’” to fix the bug.  
Here ya go:

> **[horror game (@RedSprite Fixed)](https://arcade.makecode.com/57657-73015-79087-05877)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

You probably should of seen the warning sign next to one of the blocks.

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [October 27, 2025, 5:59pm UTC](https://forum.makecode.com/t/flashlight-help/40017/4 "2025-10-27T17:59:32Z")

</div>

There is a “flashlight attached to (mySprite)” block if you scroll down in the Multilights extension block tab. You can use it like this:

 ![IMG_0655](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/8/1/816955244c8ffbaf32c0003cca2d696fff64ad6b.jpeg)  
(I changed the keys because I needed to test to make sure the code worked, but I’m on my phone.)

---

<div class="post-metadata">

**Author:** ![headcrab\_games](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@headcrab\_games](https://forum.makecode.com/u/headcrab_games)\
**Post date:** [October 28, 2025, 5:54pm UTC](https://forum.makecode.com/t/flashlight-help/40017/5 "2025-10-28T17:54:58Z")

</div>

ooh, I didn’t think that would have a use, so I never tried it, thanks
