# Help with Flashlight / Spotlight?

**URL:** <https://forum.makecode.com/t/help-with-flashlight-spotlight/17617>\
**Category:** Help\
**Tags:** game, extension\
**Created:** [January 26, 2023, 10:05pm UTC](https://forum.makecode.com/t/help-with-flashlight-spotlight/17617 "2023-01-26T22:05:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LittleRogue](https://avatars.discourse-cdn.com/v4/letter/l/d2c977/32.png) [@LittleRogue](https://forum.makecode.com/u/LittleRogue)\
**Post date:** [January 26, 2023, 10:05pm UTC](https://forum.makecode.com/t/help-with-flashlight-spotlight/17617/1 "2023-01-26T22:05:19Z")

</div>

I’m trying to use the Lantern extension for a spotlight effect (like, a spotlight shining down from a helicopter) but can’t find any instructions or examples. Can anyone point me towards some info on how to use the extension? Thanks!

---

<div class="post-metadata">

**Author:** ![Salex](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/salex/32/15835_2.png) [@Salex](https://forum.makecode.com/u/Salex)\
**Post date:** [January 29, 2023, 11:58pm UTC](https://forum.makecode.com/t/help-with-flashlight-spotlight/17617/2 "2023-01-29T23:58:19Z")

</div>

Hi!  
 ![Screenshot 2023-01-28 at 10.46.59](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/0/030150a808d7a82c4b8757d4e87d61928f9a8d27.png)  
For the `start lantern effect ()` block, you need to put the variable _of a sprite_ in the empty parameter. This starts the spotlight effect on the sprite in parameter.

`stop lantern effect` does exactly what it says on the tin: stops any/all lanterns going.

With `set light band width (int)`, think of it as changing the size of the lantern. I noticed it goes in pixels: using `1` as the parameter would make the spotlight have bands of 1 pixel; Although I’m not entirely sure, I think the default is somewhere between 12 and 17. If not, any widths in that range are still reasonable, decent widths to use for everyday use

Finally, `set breathing enabled (bool)`. By default, the light bobs in and out constantly, as if it’s breathing, to give the lantern a more realistic look; using the bool as False would deactivate this animation.

  
  

Hope this helps, sorry if you don’t understand as I’m not really good at explainations.
