# Stop a projectile?

**URL:** https://forum.makecode.com/t/stop-a-projectile/15146
**Category:** Arcade
**Created:** [August 30, 2022, 5:45pm UTC](https://forum.makecode.com/t/stop-a-projectile/15146 "2022-08-30T17:45:34Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![MissM\_Aus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/missm_aus/32/5992_2.png) [@MissM\_Aus](https://forum.makecode.com/u/MissM_Aus)
#### Post date: [August 30, 2022, 5:45pm UTC](https://forum.makecode.com/t/stop-a-projectile/15146/1 "2022-08-30T17:45:34Z")

</div>

Is it possible to stop a projectile from projecting? Like when a certain amount of points is hit, I dont want there to be any more projectiles.

---

<div class="post-metadata">

### Author: ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)
#### Post date: [August 30, 2022, 8:09pm UTC](https://forum.makecode.com/t/stop-a-projectile/15146/2 "2022-08-30T20:09:25Z")

</div>

Welcome, @MissM_Aus !

It sounds like you want something like this:

 ![arcade-screenshot (4)](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/7/7a7382b2155c28a70c0efbf83352ab73a2c53a90.png)

The `destroy all sprites of kind` block is in the **Effects** category of the **Sprites** drawer.

Feel free to share a link to your project if you have more specific questions or if I misinterpreted your question.

---

<div class="post-metadata">

### Author: ![isoffline](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/isoffline/32/8791_2.png) [@isoffline](https://forum.makecode.com/u/isoffline)
#### Post date: [August 30, 2022, 8:10pm UTC](https://forum.makecode.com/t/stop-a-projectile/15146/3 "2022-08-30T20:10:24Z")

</div>

i think we can make a variable for it like if its hit something 20 times no projectiles cant get shooten we can do a if  
like this:  
if (AmountofProjectiles \>= 1){  
set my projectile from my sprite to shoot ye somthing like that  
}  
i hope this helps

---

<div class="post-metadata">

### Author: ![CuteMrMerp](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cutemrmerp/32/6671_2.png) [@CuteMrMerp](https://forum.makecode.com/u/CuteMrMerp)
#### Post date: [August 31, 2022, 4:25pm UTC](https://forum.makecode.com/t/stop-a-projectile/15146/4 "2022-08-31T16:25:34Z")

</div>

You can delete the projectiles with the `destroy all sprites of kind` block, or you can set the projectile velocity to `vx 0, vy 0` to stop it but not delete it.
