# Help with image that doesn't appear

**URL:** https://forum.makecode.com/t/help-with-image-that-doesnt-appear/41683
**Category:** Help
**Tags:** game
**Created:** [January 23, 2026, 3:43am UTC](https://forum.makecode.com/t/help-with-image-that-doesnt-appear/41683 "2026-01-23T03:43:11Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![BotWarrior](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/botwarrior/32/25328_2.png) [@BotWarrior](https://forum.makecode.com/u/BotWarrior)
#### Post date: [January 23, 2026, 3:43am UTC](https://forum.makecode.com/t/help-with-image-that-doesnt-appear/41683/1 "2026-01-23T03:43:11Z")

</div>

So… I know it has been a while, I need some help though. If you look in the top left of the screen, the dice face isn’t appearing underneath the “Attack” text. For context I am doing some really painful stuff with arrays, colour, images, and functions.

> **[dice](https://arcade.makecode.com/S11670-86609-99983-98311)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

would really appreciate help 🙂

---

<div class="post-metadata">

### Author: ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)
#### Post date: [January 23, 2026, 3:54am UTC](https://forum.makecode.com/t/help-with-image-that-doesnt-appear/41683/2 "2026-01-23T03:54:33Z")

</div>

Hmmmm…

I suspect the problem is that you’re thinking that `temp dice image list` is a duplicate of `dice image list reference`. It is not. It’s the same array – meaning the exact same variable. When you manipulate `temp dice image list`, you also are changing `dice image list reference`, too.

Am I interpreting your intentions correctly?

---

<div class="post-metadata">

### Author: ![BotWarrior](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/botwarrior/32/25328_2.png) [@BotWarrior](https://forum.makecode.com/u/BotWarrior)
#### Post date: [January 23, 2026, 4:15am UTC](https://forum.makecode.com/t/help-with-image-that-doesnt-appear/41683/3 "2026-01-23T04:15:41Z")

</div>

so it is sort of linking them? that seems weird

---

<div class="post-metadata">

### Author: ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)
#### Post date: [January 23, 2026, 4:20am UTC](https://forum.makecode.com/t/help-with-image-that-doesnt-appear/41683/4 "2026-01-23T04:20:02Z")

</div>

Basically, yes.

It’s the same ideas as doing this:

 ![arcade-screenshot (16)](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/9/1/913b03a3bab89d371a248662fc4fd4fedf22307c.png)

The two variables point to the same sprite. Changing the sprite with one of the variables will change it for the other, since they both reference the same place in memory.

Sprites, images, arrays, and other complex variables (they’re technically known as _objects_ or _instances_) reference specific places in memory. If two variables point to the same place in memory, then changing one variable will affect the other.

---

<div class="post-metadata">

### Author: ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)
#### Post date: [January 23, 2026, 4:28am UTC](https://forum.makecode.com/t/help-with-image-that-doesnt-appear/41683/5 "2026-01-23T04:28:30Z")

</div>

Simplest solution: If you want to work with a copy of an array, then make an actual copy. Best way to do that is to create a function.

1. Create an empty array in the function.
2. Then, iterate through the original array, duplicate each image, and then add the duplicated image to the new array.
3. After duplicating all of the images, have the function return the new array.

For those of you seeing this after the fact and working in JavaScript, use the `slice()` function instead, which can be used to duplicate an array.

```typescript
let arrayCopy: Image[] = originalImages.slice(0)

```

---

<div class="post-metadata">

### Author: ![BotWarrior](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/botwarrior/32/25328_2.png) [@BotWarrior](https://forum.makecode.com/u/BotWarrior)
#### Post date: [January 23, 2026, 4:35am UTC](https://forum.makecode.com/t/help-with-image-that-doesnt-appear/41683/6 "2026-01-23T04:35:31Z")

</div>

Ah ok thanks, that was just what I was thinking 👍
