# How do I get the enemy array to not show

**URL:** <https://forum.makecode.com/t/how-do-i-get-the-enemy-array-to-not-show/7715>\
**Category:** Arcade\
**Created:** [April 29, 2021, 6:23pm UTC](https://forum.makecode.com/t/how-do-i-get-the-enemy-array-to-not-show/7715 "2021-04-29T18:23:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArboTeach](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/arboteach/32/2990_2.png) [@ArboTeach](https://forum.makecode.com/u/ArboTeach)\
**Post date:** [April 29, 2021, 6:23pm UTC](https://forum.makecode.com/t/how-do-i-get-the-enemy-array-to-not-show/7715/1 "2021-04-29T18:23:37Z")

</div>

I started making this game to show my class arrays. How do I get the array to not show inteh middle of the screen?  
[https://makecode.com/\_b7z5Vd6bAf28](https://makecode.com/_b7z5Vd6bAf28)

---

<div class="post-metadata">

**Author:** ![DahbixLP](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dahbixlp/32/4760_2.png) [@DahbixLP](https://forum.makecode.com/u/DahbixLP)\
**Post date:** [April 29, 2021, 6:46pm UTC](https://forum.makecode.com/t/how-do-i-get-the-enemy-array-to-not-show/7715/2 "2021-04-29T18:46:31Z")

</div>

Hello! I think the problem was that you had sprites inside the array!  
So I put the set sprite img: random from array! So not the picture is random and not the sprite! Also I set the set array on the start!

> **[Space Duck](https://arcade.makecode.com/43946-58249-67394-58383)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [April 29, 2021, 6:47pm UTC](https://forum.makecode.com/t/how-do-i-get-the-enemy-array-to-not-show/7715/3 "2021-04-29T18:47:03Z")

</div>

Instead of making 4 sprites every 500 ms and only using one of them, I would just make an array of bogey images and then pick a random image to use as a sprite. Here is the fix:

> **[Space Duck](https://arcade.makecode.com/42765-52617-75550-91759)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

I’ve also make the stars autodestroy too.

---

<div class="post-metadata">

**Author:** ![ArboTeach](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/arboteach/32/2990_2.png) [@ArboTeach](https://forum.makecode.com/u/ArboTeach)\
**Post date:** [April 30, 2021, 5:28am UTC](https://forum.makecode.com/t/how-do-i-get-the-enemy-array-to-not-show/7715/4 "2021-04-30T05:28:11Z")

</div>

Thanks that is what I was looking for.  
I wish there were more tutorials for the higher level coding.
