Discuss Scratch

noahlbillsayahoo
New Scratcher
1 post

How do you make a sprite stop another spirte from moving when it touches it?

How do you make a sprite stop another spirte from moving when it touches it?
hrsidkpi
Scratcher
16 posts

How do you make a sprite stop another spirte from moving when it touches it?

in the moving sprite you do

if not toching
if key up pressed change x by 1…

Last edited by hrsidkpi (June 23, 2013 21:58:17)

clubby789
Scratcher
54 posts

How do you make a sprite stop another spirte from moving when it touches it?

repeat until touching
move 10 steps

Scratchy9000EX
Scratcher
26 posts

How do you make a sprite stop another spirte from moving when it touches it?

if <touching [ Sprite 2]?> then
stop [all]
end

Last edited by Scratchy9000EX (May 17, 2014 16:29:50)

Burnout5858
Scratcher
100+ posts

How do you make a sprite stop another spirte from moving when it touches it?

when green flag clicked
repeat until <touching [Whatever v]?>
move (?) steps


end
stop [ this scriptv]

Last edited by Burnout5858 (May 17, 2014 12:02:20)

08draven
Scratcher
69 posts

How do you make a sprite stop another spirte from moving when it touches it?

when green flag clicked
forever
if <not <touching [sprite]?>> then
move (10) steps
else
stop [all]
end
end
i helped you.

Last edited by 08draven (July 7, 2014 15:59:40)

08draven
Scratcher
69 posts

How do you make a sprite stop another spirte from moving when it touches it?

when green flag clicked
move (10) steps
move (10) steps
move (10) steps
move (10) steps
move (10) steps
move (10) steps
go to [sprite]
stop [all]

Last edited by 08draven (July 7, 2014 16:03:24)

08draven
Scratcher
69 posts

How do you make a sprite stop another spirte from moving when it touches it?

when green flag clicked
repeat until <touching [Whatever You Want v] ?>
move (10) steps
end
stop this sprite from getting on [Whatever You Want (retype) v] :: control

end

(pen color :: pen)
(pen shade :: pen)
(place :: motion)

Last edited by 08draven (Aug. 2, 2014 16:14:32)

haznah
Scratcher
34 posts

How do you make a sprite stop another spirte from moving when it touches it?

when green flag clicked
forever

if <touching [ sprit 2] ?> then
stop [ sprit 1]

end


end

end
hop this helps! I am new but I have figured out how to do things like this!
SuperSmashScratch
Scratcher
1000+ posts

How do you make a sprite stop another spirte from moving when it touches it?

Back on topic, everyone!
zacadoole1
Scratcher
100+ posts

How do you make a sprite stop another spirte from moving when it touches it?

Here is my sincere, on-topic suggestion:

when green flag clicked
forever
if <not <touching [sprite1 v] ?>> then //substitute "sprite1" for the sprite you want to stop the movement
whatever scripts you have for motion //the actual script that makes the sprite move
else
stop [this script v] //(obviously) you can swap "this script" for "all" if you want the whole project to stop
end
end

Hope this helps!

Last edited by zacadoole1 (July 14, 2014 00:43:35)

supersmashbros123
Scratcher
10 posts

How do you make a sprite stop another spirte from moving when it touches it?

thanks @scratchy9000ex
08draven
Scratcher
69 posts

How do you make a sprite stop another spirte from moving when it touches it?

Try
repeat until <touching [ v] ?>
move () steps

end
BF10
Scratcher
500+ posts

How do you make a sprite stop another spirte from moving when it touches it?

08draven wrote:

Try
repeat until <touching [ v] ?>
move () steps

end
Please don't necrobump.
spazzylemons
Scratcher
77 posts

How do you make a sprite stop another spirte from moving when it touches it?

It's over 9000! (topic 9001)
CutieWaterfall
Scratcher
1 post

How do you make a sprite stop another spirte from moving when it touches it?

when green flag clicked
forever
repeat until <touching [ v] ?>
move (1) steps
end
stop [ this script]
end

Hope this helps!
asivi
Scratcher
1000+ posts

How do you make a sprite stop another spirte from moving when it touches it?

CutieWaterfall wrote:

when green flag clicked
forever
repeat until <touching [ v] ?>
move (1) steps
end
stop [ this script]
end

Hope this helps!
OK, you win.

Powered by DjangoBB