# How to make your enemy shoot projectiles

**URL:** <https://forum.makecode.com/t/how-to-make-your-enemy-shoot-projectiles/20342>\
**Category:** Help\
**Created:** [June 1, 2023, 4:36pm UTC](https://forum.makecode.com/t/how-to-make-your-enemy-shoot-projectiles/20342 "2023-06-01T16:36:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerome](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@jerome](https://forum.makecode.com/u/jerome)\
**Post date:** [June 1, 2023, 4:36pm UTC](https://forum.makecode.com/t/how-to-make-your-enemy-shoot-projectiles/20342/1 "2023-06-01T16:36:51Z")

</div>

Hello, I was making my game and I had a problem, I don’t now how to make my enemy shoot projectiles does someone know?

---

<div class="post-metadata">

**Author:** ![Dodec](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dodec/32/20281_2.png) [@Dodec](https://forum.makecode.com/u/Dodec)\
**Post date:** [June 2, 2023, 5:28pm UTC](https://forum.makecode.com/t/how-to-make-your-enemy-shoot-projectiles/20342/2 "2023-06-02T17:28:55Z")

</div>

@jerome her is the code  
 ![Screenshot 2023-06-02 9.55.05 AM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/7/7f980885cdcf1b435735f5bd72f61f47880e2d0a.png)  
you can make the enemy shoot the projectiles like this. btw here is the tutorial game [https://arcade.makecode.com/S28536-78313-69877-66051](https://arcade.makecode.com/S28536-78313-69877-66051)

---

<div class="post-metadata">

**Author:** ![jerome](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@jerome](https://forum.makecode.com/u/jerome)\
**Post date:** [June 5, 2023, 5:43pm UTC](https://forum.makecode.com/t/how-to-make-your-enemy-shoot-projectiles/20342/3 "2023-06-05T17:43:47Z")

</div>

thank you so much

---

<div class="post-metadata">

**Author:** ![Dodec](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dodec/32/20281_2.png) [@Dodec](https://forum.makecode.com/u/Dodec)\
**Post date:** [June 5, 2023, 5:59pm UTC](https://forum.makecode.com/t/how-to-make-your-enemy-shoot-projectiles/20342/4 "2023-06-05T17:59:57Z")

</div>

no problem
