# Background extension!

**URL:** https://forum.makecode.com/t/background-extension/42741
**Category:** Show & Tell
**Created:** [March 18, 2026, 4:27am UTC](https://forum.makecode.com/t/background-extension/42741 "2026-03-18T04:27:36Z")
**Posts on this page:** 10
**Page:** 1

<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 18, 2026, 4:27am UTC](https://forum.makecode.com/t/background-extension/42741/1 "2026-03-18T04:27:36Z")

</div>

[YamJam-dev/pxt-background-extension: A simple and unperfected extension that adds a couple blocks to spice up the background of your game.](https://github.com/YamJam-dev/pxt-background-extension)

This extension adds 5 blocks, all of them really simple and relatively easy to understand.

1. Random BG color. (self explanatory)
2. Sprite background. (creates a background of any sprite)
3. Run background animation. (runs an animation as the background)
4. Screen split in half. (splits the background into 2 colors)
5. Screen split quarter. (splits the background into 4 colors)

This is also my first extension! As some people might know, but this extension is also far from perfect, as the sprite background block only lets you use gallery sprites (☹ idk why) BUT the extension is still ABSOLUTLEY FIRE 🔥

---

<div class="post-metadata">

### Author: ![LoonaW13](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/loonaw13/32/32158_2.png) [@LoonaW13](https://forum.makecode.com/u/LoonaW13)
#### Post date: [March 18, 2026, 5:53pm UTC](https://forum.makecode.com/t/background-extension/42741/2 "2026-03-18T17:53:39Z")

</div>

I want to use this with the game I’ve been working on (you know which one…). I don’t know if it will fit the theme though.

---

<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 19, 2026, 12:32am UTC](https://forum.makecode.com/t/background-extension/42741/3 "2026-03-19T00:32:10Z")

</div>

If you are the first use my first extension, thank you! If not, **I’m coming for you…**

[details=]  
I’m joking now don’t make me disappea-  
[/details]

---

<div class="post-metadata">

### Author: ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)
#### Post date: [March 19, 2026, 12:33am UTC](https://forum.makecode.com/t/background-extension/42741/4 "2026-03-19T00:33:57Z")

</div>

Which one I don’t even know who u are

---

<div class="post-metadata">

### Author: ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)
#### Post date: [March 20, 2026, 12:28am UTC](https://forum.makecode.com/t/background-extension/42741/5 "2026-03-20T00:28:59Z")

</div>

Why did you forget the hide deatil part

---

<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 20, 2026, 5:04pm UTC](https://forum.makecode.com/t/background-extension/42741/6 "2026-03-20T17:04:14Z")

</div>

huh what  
oh.  
why did _that_ happen?

---

<div class="post-metadata">

### Author: ![not\_a\_lemon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/not_a_lemon/32/35289_2.png) [@not\_a\_lemon](https://forum.makecode.com/u/not_a_lemon)
#### Post date: [March 22, 2026, 7:36am UTC](https://forum.makecode.com/t/background-extension/42741/7 "2026-03-22T07:36:13Z")

</div>

You need a string after the = in details; you typed this:  
`[details=]`  
When you should have said  
`[details=]`  
This has two spaces so the details thinks it has text (one space won’t work).  
So it will appear like this:

> ****
>
> Working now

Instead of this:

[details=]  
Not working  
[/details]

---

<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, 5:57pm UTC](https://forum.makecode.com/t/background-extension/42741/8 "2026-03-22T17:57:55Z")

</div>

thanks @not_a_lemon

---

<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, 3:22am UTC](https://forum.makecode.com/t/background-extension/42741/9 "2026-03-24T03:22:53Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/2/7/27e6e3ea17251bf596d124fe9a969315e26a98b0.png)

Added 2 new blocks and shortened the background animation block name.

---

<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, 3:23am UTC](https://forum.makecode.com/t/background-extension/42741/10 "2026-03-24T03:23:00Z")

</div>

sorry for all the updates, I really wanted to perfect it even though I already commited… wait…  
5 CHANGES IN A WEEK. 😭
