Projectiles and Speed

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

1 Like
Projectile

To fire a projectile, you use these blocks:

Movement

To show down the player, assuming your using this block:

Use the same block when you want to show it down, but with smaller numbers. (like dividing each by 1.5)

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)

1 Like
2 Likes

to fire a projectile:

Screenshot 2026-04-18 9.07.57 PM

and to slow down a sprite use friction:

Screenshot 2026-04-18 9.08.15 PM

1 Like

Thanks for the help!

1 Like

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.

2 Likes

well I know there’s

Screenshot 2026-04-21 2.16.14 PM

to change a projectile type

1 Like

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

2 Likes

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

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