# Projectiles and Speed

**URL:** <https://forum.makecode.com/t/projectiles-and-speed/43416>\
**Category:** Help\
**Created:** [April 18, 2026, 9:07pm UTC](https://forum.makecode.com/t/projectiles-and-speed/43416 "2026-04-18T21:07:45Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrGhost15](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mrghost15/32/33300_2.png) [@MrGhost15](https://forum.makecode.com/u/MrGhost15)\
**Post date:** [April 18, 2026, 9:07pm UTC](https://forum.makecode.com/t/projectiles-and-speed/43416/1 "2026-04-18T21:07:45Z")

</div>

How do you fire a projectile and also slow down your sprite when you walk? I can’t figure it out.

---

<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:** [April 19, 2026, 2:17am UTC](https://forum.makecode.com/t/projectiles-and-speed/43416/2 "2026-04-19T02:17:11Z")

</div>

> **Projectile**
>
> To fire a projectile, you use these blocks:
> 
> ![markup_1000007701](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/5/8/5860fc8286738f9d569de65903fc20ef00c0e563.png)

> **Movement**
>
> To show down the player, assuming your using this block:
> 
> ![markup_1000007702 (1)](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/6/6/660efffc67c3623465e7aa40e91bbeb0decb6cc3.png)
> 
> Use the same block when you want to show it down, but with smaller numbers. (like dividing each by 1.5)

---

<div class="post-metadata">

**Author:** ![YamJam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yamjam/32/29681_2.png) [@YamJam](https://forum.makecode.com/u/YamJam)\
**Post date:** [April 19, 2026, 2:19am UTC](https://forum.makecode.com/t/projectiles-and-speed/43416/3 "2026-04-19T02:19:17Z")

</div>

What I would do is fire the projectile and set the vx and vy for the controller to a lower number then what it was. For example (since I didn’t word it that well):  
Fire projectile → control (sprite) with vx (something lower than the og speed) vy (something lower than the og speed) → pause 1000 → control (sprite) with vx (og speed) vy (og speed)

---

<div class="post-metadata">

**Author:** ![CodingGrizzlyBear](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codinggrizzlybear/32/14838_2.png) [@CodingGrizzlyBear](https://forum.makecode.com/u/CodingGrizzlyBear)\
**Post date:** [April 19, 2026, 2:25am UTC](https://forum.makecode.com/t/projectiles-and-speed/43416/4 "2026-04-19T02:25:01Z")

</div>

> **[Projectiles and Speed](https://arcade.makecode.com/45642-26824-79945-08051)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![NeverStopTheCoder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/neverstopthecoder/32/21194_2.png) [@NeverStopTheCoder](https://forum.makecode.com/u/NeverStopTheCoder)\
**Post date:** [April 19, 2026, 2:37am UTC](https://forum.makecode.com/t/projectiles-and-speed/43416/5 "2026-04-19T02:37:55Z")

</div>

to fire a projectile:

![Screenshot 2026-04-18 9.07.57 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/optimized/3X/2/b/2b0ae7237196f994ee7ec9445a9e84d1b1578381_2_690x86.png)

and to slow down a sprite use friction:

![Screenshot 2026-04-18 9.08.15 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/0/d/0d94aef85556cb1914ffc67bb7036a7f212d4214.png)

---

<div class="post-metadata">

**Author:** ![MrGhost15](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mrghost15/32/33300_2.png) [@MrGhost15](https://forum.makecode.com/u/MrGhost15)\
**Post date:** [April 19, 2026, 9:34pm UTC](https://forum.makecode.com/t/projectiles-and-speed/43416/6 "2026-04-19T21:34:46Z")

</div>

Thanks for the help!

---

<div class="post-metadata">

**Author:** ![BotWarrior](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/botwarrior/32/25328_2.png) [@BotWarrior](https://forum.makecode.com/u/BotWarrior)\
**Post date:** [April 21, 2026, 5:10pm UTC](https://forum.makecode.com/t/projectiles-and-speed/43416/7 "2026-04-21T17:10:14Z")

</div>

This might be an unpopular opinion but I really dislike the projectile blocks. Since they all have the same sprite kind it takes much more effort to write any code with multiple different projectiles (say a boss’s projectile vs a player’s one). I usually write a simple function to create a sprite and then set the velocity, with optional parameters for other things I might want to control like speed and size. You can even add rotation and make it fire in the direction you click with your mouse or make it spin… The possibilities are just so much greater if you make your own functions and use sprites.

---

<div class="post-metadata">

**Author:** ![NeverStopTheCoder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/neverstopthecoder/32/21194_2.png) [@NeverStopTheCoder](https://forum.makecode.com/u/NeverStopTheCoder)\
**Post date:** [April 21, 2026, 6:34pm UTC](https://forum.makecode.com/t/projectiles-and-speed/43416/8 "2026-04-21T18:34:15Z")

</div>

well I know there’s

![Screenshot 2026-04-21 2.16.14 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/c/b/cb02b354c089fa01139f0d7e918df3969d0c98be.png)

to change a projectile type

---

<div class="post-metadata">

**Author:** ![BotWarrior](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/botwarrior/32/25328_2.png) [@BotWarrior](https://forum.makecode.com/u/BotWarrior)\
**Post date:** [April 22, 2026, 3:05am UTC](https://forum.makecode.com/t/projectiles-and-speed/43416/9 "2026-04-22T03:05:05Z")

</div>

It is still easier to set optional parameters with your own functions…

---

<div class="post-metadata">

**Author:** ![NeverStopTheCoder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/neverstopthecoder/32/21194_2.png) [@NeverStopTheCoder](https://forum.makecode.com/u/NeverStopTheCoder)\
**Post date:** [April 22, 2026, 7:10pm UTC](https://forum.makecode.com/t/projectiles-and-speed/43416/10 "2026-04-22T19:10:00Z")

</div>

what do you mean would that block not work like i guess making more stuff yours does make it better i guess kinda but

---

<div class="post-metadata">

**Author:** ![BotWarrior](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/botwarrior/32/25328_2.png) [@BotWarrior](https://forum.makecode.com/u/BotWarrior)\
**Post date:** [April 23, 2026, 2:48am UTC](https://forum.makecode.com/t/projectiles-and-speed/43416/11 "2026-04-23T02:48:25Z")

</div>

I can show you, I did put together a demo project for this type of thing a long time ago
