# How do i fix this projectiles?

**URL:** https://forum.makecode.com/t/how-do-i-fix-this-projectiles/44408
**Category:** Help
**Created:** [June 8, 2026, 5:10pm UTC](https://forum.makecode.com/t/how-do-i-fix-this-projectiles/44408 "2026-06-08T17:10:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![superOPScoder1](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@superOPScoder1](https://forum.makecode.com/u/superOPScoder1)
#### Post date: [June 8, 2026, 5:10pm UTC](https://forum.makecode.com/t/how-do-i-fix-this-projectiles/44408/1 "2026-06-08T17:10:46Z")

</div>

help

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/d/b/dbda108c36b0cc1f8ca123634bfba40d3b015310.png)

---

<div class="post-metadata">

### Author: ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)
#### Post date: [June 8, 2026, 5:17pm UTC](https://forum.makecode.com/t/how-do-i-fix-this-projectiles/44408/2 "2026-06-08T17:17:40Z")

</div>

can you share your code, and give a more detailed description on what’s going on? A few things I can get is that when the projectile heads right, the if statement inside the forever needs to switch direction. Use a (projectile[vx]) \> 0 to allow the other direction. Another thing is that the while is useless and will lag your game.
