# Lanterns: improving the Multilights extension!

**URL:** https://forum.makecode.com/t/lanterns-improving-the-multilights-extension/33190
**Category:** Show & Tell
**Tags:** extension, graphics-and-math
**Created:** [January 16, 2025, 11:41pm UTC](https://forum.makecode.com/t/lanterns-improving-the-multilights-extension/33190 "2025-01-16T23:41:08Z")
**Posts on this page:** 20
**Page:** 3

<div class="post-metadata">

### Author: ![YamJam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yamjam/32/29681_2.png) [@YamJam](https://forum.makecode.com/u/YamJam)
#### Post date: [February 19, 2026, 11:31pm UTC](https://forum.makecode.com/t/lanterns-improving-the-multilights-extension/33190/41 "2026-02-19T23:31:24Z")

</div>

hey @WoofWoof, I’m making a game that uses raycasting for a flashlight but I can’t seem to get the shader ramp to work or the light to actually stay in the middle. Here it is if you wanna edit it:

> **[A walk through the rain](https://arcade.makecode.com/S99790-29404-45846-76478)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<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: [February 20, 2026, 3:26am UTC](https://forum.makecode.com/t/lanterns-improving-the-multilights-extension/33190/42 "2026-02-20T03:26:35Z")

</div>

I solved this problem for someone 5 posts above yours! Please read the whole thread next time:

> [@Lanterns: improving the Multilights extension!](https://forum.makecode.com/t/lanterns-improving-the-multilights-extension/33190/36):
>
> That… makes sense… I think… Anyways, here you are:

About the shader ramp, it looks like everything is correct. Unfortunately that probably means that these two extensions are not compatible. It appears that the Multilights code “sees” the screen as being all transparent, and cannot see the colors. You can see this if you change the ramp for color 0 (transparency) to other colors. Sorry!

---

<div class="post-metadata">

### Author: ![YamJam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yamjam/32/29681_2.png) [@YamJam](https://forum.makecode.com/u/YamJam)
#### Post date: [February 20, 2026, 6:26pm UTC](https://forum.makecode.com/t/lanterns-improving-the-multilights-extension/33190/43 "2026-02-20T18:26:39Z")

</div>

aww man  
I read the whole thread and followed what you said but it just didn’t work so I asked.

---

<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: [February 20, 2026, 8:13pm UTC](https://forum.makecode.com/t/lanterns-improving-the-multilights-extension/33190/44 "2026-02-20T20:13:09Z")

</div>

Ohhh ok then, I’ll look at it more when I get home.

---

<div class="post-metadata">

### Author: ![YamJam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yamjam/32/29681_2.png) [@YamJam](https://forum.makecode.com/u/YamJam)
#### Post date: [March 22, 2026, 7:37am UTC](https://forum.makecode.com/t/lanterns-improving-the-multilights-extension/33190/45 "2026-03-22T07:37:51Z")

</div>

I don’t know if this topic counts as dead or not, but I really want to know if you’re able to use a different pallete at the same time. For example, a lantern light source where the inside is arcade pallete and the outside is something like sweet or smth.

---

<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: [March 22, 2026, 5:55pm UTC](https://forum.makecode.com/t/lanterns-improving-the-multilights-extension/33190/46 "2026-03-22T17:55:16Z")

</div>

The screen can only handle 16 colors on the screen at a time, so it would have to be that, added up, the two pallets only used 16 colors at a time combined. It’s certainly possible to have stuff like using one color as 2 as long as it isn’t ever on the screen as both colors at the same time. I think it would be very hard and would require a specific art style to pull off, as well as a very good understanding of which colors are on the screen at the same time.

---

<div class="post-metadata">

### Author: ![YamJam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yamjam/32/29681_2.png) [@YamJam](https://forum.makecode.com/u/YamJam)
#### Post date: [March 22, 2026, 9:37pm UTC](https://forum.makecode.com/t/lanterns-improving-the-multilights-extension/33190/47 "2026-03-22T21:37:36Z")

</div>

Alright, thanks!

---

<div class="post-metadata">

### Author: ![YamJam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yamjam/32/29681_2.png) [@YamJam](https://forum.makecode.com/u/YamJam)
#### Post date: [March 22, 2026, 9:40pm UTC](https://forum.makecode.com/t/lanterns-improving-the-multilights-extension/33190/48 "2026-03-22T21:40:19Z")

</div>

Oh, also is it in any way possible for a certain sprite _not_ get affected by the darkness? I’m making a game with an inventory, and I need you to be able to see it when the lighting is on.

---

<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: [March 23, 2026, 1:49am UTC](https://forum.makecode.com/t/lanterns-improving-the-multilights-extension/33190/49 "2026-03-23T01:49:40Z")

</div>

Yep! Looks like the extension shades the screen at z level 91, so as long as your inventory renders at a higher z level it shouldn’t get shaded!

---

<div class="post-metadata">

### Author: ![YamJam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yamjam/32/29681_2.png) [@YamJam](https://forum.makecode.com/u/YamJam)
#### Post date: [March 23, 2026, 10:12pm UTC](https://forum.makecode.com/t/lanterns-improving-the-multilights-extension/33190/50 "2026-03-23T22:12:11Z")

</div>

umm…

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/4/d/4d77d8874f60d6dab5732760c49d4bc20e832898.png)  
I just added this code and I all of a sudden got this random error 😭

---

<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: [March 24, 2026, 3:02am UTC](https://forum.makecode.com/t/lanterns-improving-the-multilights-extension/33190/51 "2026-03-24T03:02:06Z")

</div>

Yeah I’m gonna need a link for this one…

---

<div class="post-metadata">

### Author: ![YamJam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yamjam/32/29681_2.png) [@YamJam](https://forum.makecode.com/u/YamJam)
#### Post date: [March 24, 2026, 10:31pm UTC](https://forum.makecode.com/t/lanterns-improving-the-multilights-extension/33190/52 "2026-03-24T22:31:36Z")

</div>

here ya go

> **[Cube World: Seeds! - Original](https://arcade.makecode.com/S29068-22290-36125-17730)**
>
> version something point something
> very good game rn

I’m trying to make the circle light slowly get smaller and smaller kinda like a fading effect since that’s what I did before I added a torch. (I made the colors fade to a darker version)

---

<div class="post-metadata">

### Author: ![KawaiiGoddess](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kawaiigoddess/32/33722_2.png) [@KawaiiGoddess](https://forum.makecode.com/u/KawaiiGoddess)
#### Post date: [March 24, 2026, 11:15pm UTC](https://forum.makecode.com/t/lanterns-improving-the-multilights-extension/33190/53 "2026-03-24T23:15:47Z")

</div>

Laggy! Ohno!

---

<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: [March 25, 2026, 2:53am UTC](https://forum.makecode.com/t/lanterns-improving-the-multilights-extension/33190/54 "2026-03-25T02:53:40Z")

</div>

Who could have guessed that the seed 0 would spawn all trees!

The error is happening because those numbers are going negative and they shouldn’t do that! Try this instead:

 ![Screenshot 2026-03-24 at 7.21.03 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/6/4/6463ebf8b701f3bac3f7232bc85b7ad068a511c3.png)

The lag is happening because you set your circle size REALLYY big, so you’ll want to make it smaller to avoid that. You could just make the centerRadius big and leave the bandWidth small to cover the whole screen and still avoid this issue.

---

<div class="post-metadata">

### Author: ![YamJam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yamjam/32/29681_2.png) [@YamJam](https://forum.makecode.com/u/YamJam)
#### Post date: [March 25, 2026, 10:11pm UTC](https://forum.makecode.com/t/lanterns-improving-the-multilights-extension/33190/55 "2026-03-25T22:11:41Z")

</div>

I like seed 0 since it does that too!

---

<div class="post-metadata">

### Author: ![YamJam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yamjam/32/29681_2.png) [@YamJam](https://forum.makecode.com/u/YamJam)
#### Post date: [March 25, 2026, 10:18pm UTC](https://forum.makecode.com/t/lanterns-improving-the-multilights-extension/33190/56 "2026-03-25T22:18:58Z")

</div>

hmm, still not working?

> **[Cube World: Seeds! - Original](https://arcade.makecode.com/S29068-22290-36125-17730)**
>
> version something point something
> very good game rn

---

<div class="post-metadata">

### Author: ![Soleb244](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@Soleb244](https://forum.makecode.com/u/Soleb244)
#### Post date: [June 29, 2026, 6:09pm UTC](https://forum.makecode.com/t/lanterns-improving-the-multilights-extension/33190/57 "2026-06-29T18:09:46Z")

</div>

Is there a way to make a sprite or a section of the screen ignore the lighting effects?

Im making a game and it has some ui the player needs to see. I did make my own lighting system and one with a shader extension but they are both realy laggy, so my only current option is making every pixel eighter normal or black with nothing in between, but that looks much worse.

Btw I love this extension, its amazing how smoothly it runs.

---

<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: [June 29, 2026, 6:25pm UTC](https://forum.makecode.com/t/lanterns-improving-the-multilights-extension/33190/58 "2026-06-29T18:25:03Z")

</div>

I don’t remember what z level I have it run at, but if you move your UI to a z level that is high enough it will render after the shader effect is applied.

This extension runs super fast because it is using some c++ functions that the mods built into Makecode specifically for making shaders run faster! It’s very nice. The old Lantern and Multilights extensions have not updated to use these functions yet.  
I think I still haven’t updated the flashlights part of this extension to use those yet… a project for next time I’m bored I suppose.

---

<div class="post-metadata">

### Author: ![Not-a-creepy-doll](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/not-a-creepy-doll/32/28255_2.png) [@Not-a-creepy-doll](https://forum.makecode.com/u/Not-a-creepy-doll)
#### Post date: [September 9, 2026, 10:35pm UTC](https://forum.makecode.com/t/lanterns-improving-the-multilights-extension/33190/59 "2026-09-09T22:35:30Z")

</div>

Hey Woof woof, do you think you can make it so you can have the circlelight or just the whole screen be a certain light level?  
For Retro Phantom, I got a light level that I really like and would want to use it for the Power outage sequence.

---

<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: [September 10, 2026, 4:44pm UTC](https://forum.makecode.com/t/lanterns-improving-the-multilights-extension/33190/60 "2026-09-10T16:44:29Z")

</div>

I am unfortunately quite busy, but yes probably this is an easy change to make. I’ll see what I can do given the time I have and how often I forget to do stuff like this.

[Previous page](https://forum.makecode.com/t/lanterns-improving-the-multilights-extension/33190.md?page=2)

[Next page](https://forum.makecode.com/t/lanterns-improving-the-multilights-extension/33190.md?page=4)
