Discuss Scratch

Magnus_Mg12
Scratcher
26 posts

How to stop a sprite from moving after it touches a sprite

Hi guys!
I’d like to know how to stop the sprite from moving after it touches the bullet but the box for the ‘if,then’ is the hexagonal one and i don’t know how to do it.
If some of you guys could help i would really appreciate it. Thanks!
Unixy-Code
Scratcher
500+ posts

How to stop a sprite from moving after it touches a sprite

Magnus_Mg12 wrote:

Hi guys!
I’d like to know how to stop the sprite from moving after it touches the bullet but the box for the ‘if,then’ is the hexagonal one and i don’t know how to do it.
If some of you guys could help i would really appreciate it. Thanks!

if <touching [sprite v] ?> then
stop [this script v]
end

This script insert in moving script.
Magnus_Mg12
Scratcher
26 posts

How to stop a sprite from moving after it touches a sprite

thanks!
Coder046
Scratcher
100+ posts

How to stop a sprite from moving after it touches a sprite

Yes, though this needs to be inserted into a repeat loop with a movement script; then, it'll check for collisions each time the movement is done (or begins, depending on where you insert the above script). If you're using a glide block, you may want to consider using the
stop [other scripts in sprite v]
block.
SpaceGamingOfficial
Scratcher
2 posts

How to stop a sprite from moving after it touches a sprite

hi

Powered by DjangoBB