Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to end my program when hit by another sprite and say you won
- shamanking21
-
7 posts
How to end my program when hit by another sprite and say you won
Hey my college class gave me another project and in the project I have to make a game that has 2 sprite on that you move and one that moves independently. I made a racing program one that is moved by me and another another sprite that moves by its self but I want to make a finish line but I don't know how to stop it after that all the sprites do is continue running.I made a tree the finish line but I want the program to stop when it hits the tree and send a message saying you won or you lost please I need help.
- timetravelernick
-
86 posts
How to end my program when hit by another sprite and say you won
when green flag clicked
forever
if <touching [Sprite v]?> then
say [You Won!]
stop [all v]
end
end
I hope this solves your problem!
- shamanking21
-
7 posts
How to end my program when hit by another sprite and say you won
What if you wanted to put in a sound when the program is finished like before its says you won how about put in a sound that signifies that you won? I tried to do it but the program is not making a sound.
- theobenjamin
-
65 posts
How to end my program when hit by another sprite and say you won
What if you wanted to put in a sound when the program is finished like before its says you won how about put in a sound that signifies that you won? I tried to do it but the program is not making a sound.
when green flag clicked
if <touching [sprite v]?> then
broadcast [sound v]
end
when I receive [sound v]
play sound [i won v]
- shamanking21
-
7 posts
How to end my program when hit by another sprite and say you won
where is broadcast sound? I cant find it
- timetravelernick
-
86 posts
How to end my program when hit by another sprite and say you won
What if you wanted to put in a sound when the program is finished like before its says you won how about put in a sound that signifies that you won? I tried to do it but the program is not making a sound.
when green flag clicked
forever
if <touching [Sprite v]?> then
say [You Won!]
play sound [Put your sound here v] until done
stop [all v]
end
end
I think this should do it?
- theobenjamin
-
65 posts
How to end my program when hit by another sprite and say you won
it is where is broadcast sound? I cant find it
broadcast [ v]and
when I receive [ v]
- kittyfairy
-
1 post
How to end my program when hit by another sprite and say you won
how do u make them move?

- Specter22
-
100+ posts
How to end my program when hit by another sprite and say you won
For any new Scratcher's please check out the getting Started Section, just click the Question Mark (?) on the right of the Screen. Also check out Learnscratch.org it uses the 1.4 version but has a tutorial on all the blocks in that version and inventwithscratch.com Al's Videos are great for beginners.
- Flower_Girl09
-
1 post
How to end my program when hit by another sprite and say you won
hello i dont know eather
- Discussion Forums
- » Help with Scripts
-
» How to end my program when hit by another sprite and say you won