Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » making sprites stop moving when touching another but not stopping the whole script
- BostonCavs
-
13 posts
making sprites stop moving when touching another but not stopping the whole script
I am making a game where you click and it goes where you click. I am wondering how to when the sprite touches the one sprite, make it stop moving without stopping all the scripts in the sprite or all the sprites. I would appreciate it. thanks.

- mstone326
-
1000+ posts
making sprites stop moving when touching another but not stopping the whole script
Share the project so we can see the scripts and give you a better answer than just a guess.
- twirll
-
27 posts
making sprites stop moving when touching another but not stopping the whole script
This mighte work
move (1) steps
if <touching [something] ?> then
move (0) steps
end
Last edited by twirll (Nov. 18, 2018 14:27:53)
- BostonCavs
-
13 posts
making sprites stop moving when touching another but not stopping the whole script
here it is https://scratch.mit.edu/projects/262961323/
- mstone326
-
1000+ posts
making sprites stop moving when touching another but not stopping the whole script
You are using the glide block. The glide block doesn't check for touching the grasshopper until the glides completely finish, then it checks. You'll need a separate script if you want to keep using the glide.
You could create a separate script that when backdrop switches to level 1, wait until touching grasshopper, then stop all scripts in this sprite.
Or you could create a broadcast in the grasshopper sprite, when he touches the plant it will send the message and the plant broadcast receiver should stop all scripts in the grasshopper sprite
You could create a separate script that when backdrop switches to level 1, wait until touching grasshopper, then stop all scripts in this sprite.
Or you could create a broadcast in the grasshopper sprite, when he touches the plant it will send the message and the plant broadcast receiver should stop all scripts in the grasshopper sprite
- BostonCavs
-
13 posts
making sprites stop moving when touching another but not stopping the whole script
Thanks! this really helped!

- Sethnoodles
-
34 posts
making sprites stop moving when touching another but not stopping the whole script
when green flag clicked
if <touching [ v] ?> then
stop [ v]
end
I tried doing this but it didnt work
- Rubes007
-
1 post
making sprites stop moving when touching another but not stopping the whole script
im trying to make a pac man game but when the ghost touches pacman he moves instead of the backdrop changing https://scratch.mit.edu/projects/544256782 hellllllppppppp
- Discussion Forums
- » Help with Scripts
-
» making sprites stop moving when touching another but not stopping the whole script