Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to launch an object from a slingshot
- MasterSloth3
-
New Scratcher
5 posts
How to launch an object from a slingshot
I'm trying to launch an object from a slingshot. How do I make it launch? Also, I want the object to break another object only if it is going equal to or greater than a certain speed. How do I do that?
- best-games-ever
-
Scratcher
500+ posts
How to launch an object from a slingshot
This will help for shooting: https://en.scratch-wiki.info/wiki/Shooting_Projectiles
For braking objects:
for the projectile sprite:
for the sprite to be broken:
hope this works
For braking objects:
for the projectile sprite:
when green flag clicked
forever
if <<(speed) > [20]> and <touching [sprite you can break v] ?>> then
broadcast [break v]
end
end
for the sprite to be broken:
when I receive [break v]
switch costume to [broken costume v]
hope this works

- best-games-ever
-
Scratcher
500+ posts
How to launch an object from a slingshot
you would have to program the speed variable, you actually should use a custom block.
Last edited by best-games-ever (May 5, 2018 18:40:41)
- cs4978917
-
New Scratcher
1 post
How to launch an object from a slingshot
Can you explain to me how this works?
- Discussion Forums
- » Help with Scripts
-
» How to launch an object from a slingshot