# A tutorial to images, sprites, and other things

**URL:** <https://forum.makecode.com/t/a-tutorial-to-images-sprites-and-other-things/47340>\
**Category:** Help\
**Tags:** tutorial\
**Created:** [November 16, 2026, 1:35am UTC](https://forum.makecode.com/t/a-tutorial-to-images-sprites-and-other-things/47340 "2026-11-16T01:35:00Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sword\_Studios](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sword_studios/32/36911_2.png) [@Sword\_Studios](https://forum.makecode.com/u/Sword_Studios)\
**Post date:** [November 16, 2026, 1:35am UTC](https://forum.makecode.com/t/a-tutorial-to-images-sprites-and-other-things/47340/1 "2026-11-16T01:35:00Z")

</div>

I decided I wanted to do another one of these.

So, what are images? They are, well, images.

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/c/0/c07ad02a4a5ae65b83bd446ee4c4a76cbb1673f9.png)

You can draw stuff using them and assign a it to a sprite so it actually looks like something.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/6/f/6f5a6c9c1184321ae19459c45d2f61d59489879b.png)

The other thing is about the rest of the image category.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/6/3/638f8be7751ff9ec92948916c22148d261ce6b30.png)

How about we break it down into a couple parts?

> **Create**
>
> There are 5 blocks in the “Create” section of the Images tab.
> 
> ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/a/9/a9ac656844ac643e9db65b0f576d57cc628812ab.png)
> 
> The first block. You can click on the gray rectangle to draw something.
> 
> The 2nd block. It creates a rectangle with the given width and height. However, this image will be transparent. How do we fix this? We’ll get to that in a sec.
> 
> The 3rd block. It just clones the image.
> 
> The 4th block. It returns the entire current screen image. Everything that is on that screen right now.
> 
> And the 5th block. Returns the length or width of the image.

> **Drawing**
>
> ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/6/b/6b9fc16aaf57b6cb84f97ff57cbe88251c9a812e.png)
> 
> Yes, the first block is what you use to fill the entire image with the color you want. So, in the example mySprite’s image will be completely transparent.
> 
> ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/e/5/e5b1b27730119131cfe3d4111ac5b0a233de4fb9.png)
> 
> The 2nd block. Returns the pixel’s color at a given point in an image.
> 
> The 3rd block. Pretty self-explanitory if you ask me. But, this block sets a pixel’s color in an image to another one.
> 
> The 4th block. Draws a rectangle in an image at a given point with the given dimensions, and outlines it that color.
> 
> The 5th block. Draws a line from one point to another with the given color.
> 
> The 6th block. Fills the rectangle that you drew with the fourth block with a given color.
> 
> The 7th block. Draws an image onto the current image.

> **Transformations**
>
> ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/b/9/b9a969263ee96a8fc2af24ca8ae1d56d7b75786c.png)
> 
> The 1st block. changes all of one color in an image to another.
> 
> The 2nd and 3rd block. Flips the image vertically and horizontally respectively. They basically act like this
> 
> ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/b/2/b238d83da233dd61c1e929885090929fe7cf900e.png)

And finally, this block.

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

Returns true if both images are the same. And if you’re thinking “Why can’t I do this?”

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/1/3/13114931d0e5b76c15137b96909c2cc1c2a32a00.png)

It doesn’t work for some reason. You just have to use that block.

And this tutorial isn’t over just yet. You can use the

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/f/5/f5e24bbe9a125082c5f43430ca1bf107bc003c4e.png)

block to make the sprite a rectangle so you don’t have to manually do it.

Aaaaaand I just realized that richard did something similar to this but I hope this was insightful anyways.

---

<div class="post-metadata">

**Author:** ![TheGooberEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thegooberearth/32/36693_2.png) [@TheGooberEarth](https://forum.makecode.com/u/TheGooberEarth)\
**Post date:** [November 16, 2026, 3:39am UTC](https://forum.makecode.com/t/a-tutorial-to-images-sprites-and-other-things/47340/2 "2026-11-16T03:39:26Z")

</div>

cool stuff

---

<div class="post-metadata">

**Author:** ![offtopic](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/offtopic/32/37054_2.png) [@offtopic](https://forum.makecode.com/u/offtopic)\
**Post date:** [November 16, 2026, 6:43pm UTC](https://forum.makecode.com/t/a-tutorial-to-images-sprites-and-other-things/47340/3 "2026-11-16T18:43:06Z")

</div>

I discovered images tab a month or 2 ago and have been abusing it ever since

---

<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:** [November 16, 2026, 6:58pm UTC](https://forum.makecode.com/t/a-tutorial-to-images-sprites-and-other-things/47340/4 "2026-11-16T18:58:02Z")

</div>

> [@Sword\_Studios](#):
>
> And finally, this block.
> 
> ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/3/2/32ac4dac61948873c0f42e787785098133f28e62.png)
> 
> Returns true if both images are the same. And if you’re thinking “Why can’t I do this?”

It does work, I think you’re just doing it wrong

---

<div class="post-metadata">

**Author:** ![Sword\_Studios](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sword_studios/32/36911_2.png) [@Sword\_Studios](https://forum.makecode.com/u/Sword_Studios)\
**Post date:** [November 16, 2026, 7:10pm UTC](https://forum.makecode.com/t/a-tutorial-to-images-sprites-and-other-things/47340/5 "2026-11-16T19:10:08Z")

</div>

How are you doing it?

---

<div class="post-metadata">

**Author:** ![Sword\_Studios](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sword_studios/32/36911_2.png) [@Sword\_Studios](https://forum.makecode.com/u/Sword_Studios)\
**Post date:** [November 16, 2026, 7:15pm UTC](https://forum.makecode.com/t/a-tutorial-to-images-sprites-and-other-things/47340/6 "2026-11-16T19:15:18Z")

</div>

> [@Sword\_Studios](#):
>
> The 6th block. Fills the rectangle that you drew with the fourth block with a given color.

Oh shoot I was wrong this creates an rectangle that’s already filled

---

<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:** [November 16, 2026, 11:34pm UTC](https://forum.makecode.com/t/a-tutorial-to-images-sprites-and-other-things/47340/7 "2026-11-16T23:34:32Z")

</div>

like this  
[https://arcade.makecode.com/S42314-40433-93902-37622](https://arcade.makecode.com/S42314-40433-93902-37622)

---

<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:** [November 16, 2026, 11:35pm UTC](https://forum.makecode.com/t/a-tutorial-to-images-sprites-and-other-things/47340/8 "2026-11-16T23:35:10Z")

</div>

By default, when using the normal == comparison, the _objects_ are compared, not the contents, so it only returns true if you are comparing a specific image object to itself:

 ![Screenshot 2026-11-16 at 4.42.12 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/9/0/90b8d88fb49cc8dff1182d815429db55c8b03b17.png)

---

<div class="post-metadata">

**Author:** ![TheGooberEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thegooberearth/32/36693_2.png) [@TheGooberEarth](https://forum.makecode.com/u/TheGooberEarth)\
**Post date:** [November 17, 2026, 5:37am UTC](https://forum.makecode.com/t/a-tutorial-to-images-sprites-and-other-things/47340/9 "2026-11-17T05:37:48Z")

</div>

Aah that’s why I have to compare the x and y of an interface instead of using object ==otherobject
