# I made a cool light thing

**URL:** <https://forum.makecode.com/t/i-made-a-cool-light-thing/44033>\
**Category:** Show & Tell\
**Tags:** art\
**Created:** [May 17, 2026, 4:19pm UTC](https://forum.makecode.com/t/i-made-a-cool-light-thing/44033 "2026-05-17T16:19:41Z")\
**Posts on this page:** 7\
**Page:** 1

<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:** [May 17, 2026, 4:19pm UTC](https://forum.makecode.com/t/i-made-a-cool-light-thing/44033/1 "2026-05-17T16:19:41Z")

</div>

> **[light system](https://arcade.makecode.com/S40012-95562-24799-17796)**
>
> warning:terrible variable names

I made a cool light code that allows you to make sprite emit light and everything in the shadow will be darker or not even visible. Im not that experienced, so its not very optimised and runs on about 20fps on my phone. If you wanted to use this with other pallets, change the “shade” function. Each array of numbers represends a color(0-15) and the numbers in the array are numbers of colors that it will show if the color is in the darkness.

If im doing something wrong then im sorry, this is my first time using those forums. Also, english isnt my first language.

---

<div class="post-metadata">

**Author:** ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)\
**Post date:** [May 18, 2026, 5:16am UTC](https://forum.makecode.com/t/i-made-a-cool-light-thing/44033/2 "2026-05-18T05:16:26Z")

</div>

Welcome @Soleb244! I’m pretty sure that either woofwoof or Richard already made that, don’t remember who, I would recommend looking at it. You did do a pretty good job though! (I have absolutely no idea how to make the effect look good)

---

<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:** [May 18, 2026, 5:16am UTC](https://forum.makecode.com/t/i-made-a-cool-light-thing/44033/3 "2026-05-18T05:16:37Z")

</div>

The uneven edges and the light being offcentered are deliberate and not bugs in the code. This is because i wanted to use this in one of my unifinshed projects for fire, and having static perfect circles didnt seem very alive.

---

<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:** [May 18, 2026, 5:24am UTC](https://forum.makecode.com/t/i-made-a-cool-light-thing/44033/4 "2026-05-18T05:24:49Z")

</div>

This is really impressive! Also, there’s already an extension that does the exact same thing. It’s called lanterns or multilights.

---

<div class="post-metadata">

**Author:** ![Air](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/air/32/26413_2.png) [@Air](https://forum.makecode.com/u/Air)\
**Post date:** [May 18, 2026, 5:30am UTC](https://forum.makecode.com/t/i-made-a-cool-light-thing/44033/5 "2026-05-18T05:30:04Z")

</div>

welcome to the community @Soleb244, this is really cool! do you mind if I use this system for a game i’m making? (also you did it right, good job!)

---

<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:** [May 18, 2026, 8:35pm UTC](https://forum.makecode.com/t/i-made-a-cool-light-thing/44033/6 "2026-05-18T20:35:03Z")

</div>

Sure, ill be happy to see something i made be usefull, but as YamJam said, theres an extension that does that, and its propably less laggy. But if you want to have more controll over whats happening or use it with other pallets, then surely use it!

---

<div class="post-metadata">

**Author:** ![1978monkeynutze](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/1978monkeynutze/32/33979_2.png) [@1978monkeynutze](https://forum.makecode.com/u/1978monkeynutze)\
**Post date:** [May 18, 2026, 8:38pm UTC](https://forum.makecode.com/t/i-made-a-cool-light-thing/44033/7 "2026-05-18T20:38:29Z")

</div>

welcome to the forums! @Soleb244
