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?

iftouching Sprite 2?thenstopall

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?

whenclickedrepeatuntiltouchingWhatever?move?stepsstop 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?

whenclickedforeverifnottouchingsprite?thenmove10stepselsestopall
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?

whenclickedmove10stepsmove10stepsmove10stepsmove10stepsmove10stepsmove10stepsgotospritestopall

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?

whenclickedrepeatuntiltouchingWhatever You Want?move10stepsstopthisspritefromgettingonWhatever You Want (retype)endpencolorpenshadeplace

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?

whenclickedforeveriftouching sprit 2?thenstop sprit 1end
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:

whenclickedforeverifnottouchingsprite1?thenwhateverscriptsyouhaveformotionthe actual script that makes the sprite moveelsestopthis script(obviously) you can swap "this script" for "all" if you want the whole project to stopsubstitute "sprite1" for the sprite you want to stop the movement

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
repeatuntiltouching?movesteps
BF10
Scratcher
500+ posts

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

08draven wrote:

Try
repeatuntiltouching?movesteps
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?

whenclickedforeverrepeatuntiltouching?move1stepsstop this script

Hope this helps!
asivi
Scratcher
1000+ posts

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

CutieWaterfall wrote:

whenclickedforeverrepeatuntiltouching?move1stepsstop this script

Hope this helps!
OK, you win.

Powered by DjangoBB