# Projectile coming from an enemy

**URL:** <https://forum.makecode.com/t/projectile-coming-from-an-enemy/4873>\
**Category:** Help\
**Created:** [December 9, 2020, 2:19pm UTC](https://forum.makecode.com/t/projectile-coming-from-an-enemy/4873 "2020-12-09T14:19:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarap14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarap14/32/2675_2.png) [@sarap14](https://forum.makecode.com/u/sarap14)\
**Post date:** [December 9, 2020, 2:19pm UTC](https://forum.makecode.com/t/projectile-coming-from-an-enemy/4873/1 "2020-12-09T14:19:08Z")

</div>

Hello, I am making a dungeon crawler type of game where I want to make an enemy that shoots projectiles at the player. So far I’ve only found a “tutorial” on how to do projectiles from the player/projectiles from an enemy that shoots from a fixed position. I’d like the enemy to shoot towards the player’s current position. Is there a way to make this happen? Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)\
**Post date:** [December 9, 2020, 3:31pm UTC](https://forum.makecode.com/t/projectile-coming-from-an-enemy/4873/2 "2020-12-09T15:31:01Z")

</div>

Hello @sarap14! I have found a chat that might be an answer to your question. [Projectile making problems](https://forum.makecode.com/t/projectile-making-problems/3071/2)  
Tap on this link and try @livcheerful´s link with the enemy.

---

<div class="post-metadata">

**Author:** ![sarap14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarap14/32/2675_2.png) [@sarap14](https://forum.makecode.com/u/sarap14)\
**Post date:** [December 9, 2020, 3:53pm UTC](https://forum.makecode.com/t/projectile-coming-from-an-enemy/4873/3 "2020-12-09T15:53:42Z")

</div>

Thank you very much! This is exactly what I was looking for 🙂
