# I want multiple enemies on screen to shoot

**URL:** https://forum.makecode.com/t/i-want-multiple-enemies-on-screen-to-shoot/11627
**Category:** Help
**Created:** [January 6, 2022, 6:54pm UTC](https://forum.makecode.com/t/i-want-multiple-enemies-on-screen-to-shoot/11627 "2022-01-06T18:54:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ioreth](https://avatars.discourse-cdn.com/v4/letter/i/e495f1/32.png) [@ioreth](https://forum.makecode.com/u/ioreth)
#### Post date: [January 6, 2022, 6:54pm UTC](https://forum.makecode.com/t/i-want-multiple-enemies-on-screen-to-shoot/11627/1 "2022-01-06T18:54:21Z")

</div>

Hey so I currently have a game with multiple enemies that spawn and fire projectiles however only the newest created enemy shoots. Is there anyway to make sure that all enemies on the screen shoot. Here is the current game I have. [https://makecode.com/\_FsEhWJbFi2tJ](https://makecode.com/_FsEhWJbFi2tJ) Thanks for your help

---

<div class="post-metadata">

### Author: ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)
#### Post date: [January 6, 2022, 10:29pm UTC](https://forum.makecode.com/t/i-want-multiple-enemies-on-screen-to-shoot/11627/2 "2022-01-06T22:29:24Z")

</div>

Welcome to the community! I like the game and I have a solution to that problem. You can use this:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/0/0909c1bd008d1ed539bf96095a34b335fd5284b0.png)  
This makes sure that for every single enemy sprite it repeats and makes a projectile and puts it on that specific enemy (via the “value” instead of the “badguy” sprite in the block that creates the projectile.) Here’s the whole code, working:

> **[superlogangame (FIXED)](https://arcade.makecode.com/76438-30597-46634-87833)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.
