# Projectile Facing with angles

**URL:** <https://forum.makecode.com/t/projectile-facing-with-angles/29672>\
**Category:** Help\
**Created:** [July 12, 2024, 10:09pm UTC](https://forum.makecode.com/t/projectile-facing-with-angles/29672 "2024-07-12T22:09:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![platformermaster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/platformermaster/32/16102_2.png) [@platformermaster](https://forum.makecode.com/u/platformermaster)\
**Post date:** [July 12, 2024, 10:09pm UTC](https://forum.makecode.com/t/projectile-facing-with-angles/29672/1 "2024-07-12T22:09:04Z")

</div>

Im making a game where the player shoots arrows at enemy’s trying to invade your fortress.  
When the arrow is shot, it should face the direction in which its moving. Yes the arrow should face in diagonals too. Here is the link [https://arcade.makecode.com/S73993-77323-63977-14074](https://arcade.makecode.com/S73993-77323-63977-14074) and hold A to aim then let go to shoot.

---

<div class="post-metadata">

**Author:** ![NeoStreak](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/neostreak/32/27498_2.png) [@NeoStreak](https://forum.makecode.com/u/NeoStreak)\
**Post date:** [July 13, 2024, 3:23am UTC](https://forum.makecode.com/t/projectile-facing-with-angles/29672/2 "2024-07-13T03:23:08Z")

</div>

I know how to make your game better. Make a variable called right. When pressing right, set right to 1, when pressing left, set right to 0. If right = 1 set projectile to 100 x 0 y if right = 0 set projectile to -100 x 0 y. This will let the character shoot in both directions. You’re welcome!

---

<div class="post-metadata">

**Author:** ![Rune](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rune/32/18951_2.png) [@Rune](https://forum.makecode.com/u/Rune)\
**Post date:** [July 13, 2024, 4:42pm UTC](https://forum.makecode.com/t/projectile-facing-with-angles/29672/3 "2024-07-13T16:42:55Z")

</div>

I like the player art!
