# Rotating Turret Shooting At Player

**URL:** <https://forum.makecode.com/t/rotating-turret-shooting-at-player/6534>\
**Category:** Help\
**Created:** [March 4, 2021, 3:22pm UTC](https://forum.makecode.com/t/rotating-turret-shooting-at-player/6534 "2021-03-04T15:22:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ric0ch3t](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ric0ch3t/32/3445_2.png) [@ric0ch3t](https://forum.makecode.com/u/ric0ch3t)\
**Post date:** [March 4, 2021, 3:22pm UTC](https://forum.makecode.com/t/rotating-turret-shooting-at-player/6534/1 "2021-03-04T15:22:58Z")

</div>

One of my students is trying to make a top-down tank game in which a stationary turret rotates in his direction and fires projectiles at him. This one’s got me pretty stumped? Any ideas? Thanks!

---

<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:** [March 4, 2021, 4:10pm UTC](https://forum.makecode.com/t/rotating-turret-shooting-at-player/6534/2 "2021-03-04T16:10:21Z")

</div>

Might want to look at the sprite utils extension:

> **[jwunderl/arcade-sprite-util](https://github.com/jwunderl/arcade-sprite-util)**
>
> A few utility functions for sprites. Contribute to jwunderl/arcade-sprite-util development by creating an account on GitHub.

It can fire projectiles off in a certain direction (note that the functions accept **radians** , but there is a block to convert degrees to radians)
