# How to make enemy projectiles shoot in the direction of the player?

**URL:** <https://forum.makecode.com/t/how-to-make-enemy-projectiles-shoot-in-the-direction-of-the-player/30087>\
**Category:** Help\
**Created:** [August 12, 2024, 1:49am UTC](https://forum.makecode.com/t/how-to-make-enemy-projectiles-shoot-in-the-direction-of-the-player/30087 "2024-08-12T01:49:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![redSprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsprite/32/34262_2.png) [@redSprite](https://forum.makecode.com/u/redSprite)\
**Post date:** [August 12, 2024, 4:52pm UTC](https://forum.makecode.com/t/how-to-make-enemy-projectiles-shoot-in-the-direction-of-the-player/30087/3 "2024-08-12T16:52:52Z")

</div>

Here is a Demo of what I think you need:

> **[Shotgun-Demo](https://arcade.makecode.com/S15642-33205-19670-99703)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

The Demo uses the Sprite Utils extension:

```auto
jwunderl/arcade-sprite-util

```

---

_[View the full topic](https://forum.makecode.com/t/how-to-make-enemy-projectiles-shoot-in-the-direction-of-the-player/30087)._
