Discuss Scratch

readingisfun
New to Scratch
1 post

when two sprites touch how do you make them disappear?

when two sprites touch how do you make one disappear?
BoltBait
Scratcher
1000+ posts

when two sprites touch how do you make them disappear?

In the sprite you want to disappear, put this script:

if <touching [the other sprite v]> then
hide
endif

Click to play:
12Hpatel
Scratcher
1 post

when two sprites touch how do you make them disappear?

what he said
cobraguy
Scratcher
1000+ posts

when two sprites touch how do you make them disappear?

BoltBait wrote:

In the sprite you want to disappear, put this script:

if <touching [the other sprite v]> then
hide
end
I just made it more visual.

Last edited by cobraguy (Nov. 12, 2013 22:33:25)

jontmy00
Scratcher
500+ posts

when two sprites touch how do you make them disappear?

cobraguy wrote:

BoltBait wrote:

In the sprite you want to disappear, put this script:

if <touching [the other sprite v]> then
hide
end
I just made it more visual.
Which happens to be a thread from 1/2 a year ago.
caldwell
New to Scratch
2 posts

when two sprites touch how do you make them disappear?

that doesn't work at all
caldwell
New to Scratch
2 posts

when two sprites touch how do you make them disappear?

i tryde and it does not work i tryed it
JuniorIT
New to Scratch
2 posts

when two sprites touch how do you make them disappear?

I tried it and it worked (thanks for the visual btw) but you can't type in the box to say what it is touching, but the name of your second sprite will be an option.

Does anyone know how to make the sprite you have disappeared reapper?
picopaper
Scratcher
500+ posts

when two sprites touch how do you make them disappear?

caldwell wrote:

that doesn't work at all
You want to put the script into a Flag-Clicked\Forever shell, like so:
when green flag clicked
forever

if <touching [other sprite v]?> then

hide
end
end

if <(platypus) = [platypus]> then
set [platypus v] to [platypus]

Pigs with Jetpacks! (a game of porcine combat)

What is with all these kumquat sig– *gulp*
picopaper
Scratcher
500+ posts

when two sprites touch how do you make them disappear?

JuniorIT wrote:

I tried it and it worked (thanks for the visual btw) but you can't type in the box to say what it is touching, but the name of your second sprite will be an option.

Does anyone know how to make the sprite you have disappeared reapper?
Just use the “show” block; it's in the Looks bar.
show

if <(platypus) = [platypus]> then
set [platypus v] to [platypus]

Pigs with Jetpacks! (a game of porcine combat)

What is with all these kumquat sig– *gulp*
mariobros406
Scratcher
500+ posts

when two sprites touch how do you make them disappear?

when green flag clicked
forever

if <touching [other sprite v]?> then

hide
end
end

Make sure to use the same script with both sprites. Also, the forever block must be used.

I only check in to Scratch from time to time to see what others have been up to. I don't really post anything anymore. I'll occasionally post a question in the AT forum if I can't find an answer anywhere else.
scratchella
New to Scratch
1 post

when two sprites touch how do you make them disappear?

how do u make it reappear???????
kagawa123
New to Scratch
8 posts

when two sprites touch how do you make them disappear?

Try using this Script:

If<touching>then
hide

Hope it helps!
kagawa123
New to Scratch
8 posts

when two sprites touch how do you make them disappear?

JuniorIT wrote:

I tried it and it worked (thanks for the visual btw) but you can't type in the box to say what it is touching, but the name of your second sprite will be an option.

Does anyone know how to make the sprite you have disappeared reapper?

A script for the sprite who disappeared

forever
if<touchingthen
hide
wait <5> seconds
show

Does this work?
ppettitt
Scratcher
100+ posts

when two sprites touch how do you make them disappear?

scratchella wrote:

how do u make it reappear???????
when green flag clicked
forever
if <touching [other sprite v]> then
hide
else
show
end
end

The semicolon will never be forgotten!
;
Skavenger
New to Scratch
1 post

when two sprites touch how do you make them disappear?

scratchella wrote:

how do u make it reappear???????
GO TO LOOKS AND DO SHOW
Chock_cake
Scratcher
23 posts

when two sprites touch how do you make them disappear?

JuniorIT wrote:

I tried it and it worked (thanks for the visual btw) but you can't type in the box to say what it is touching, but the name of your second sprite will be an option.

Does anyone know how to make the sprite you have disappeared reapper?


The show button! (I can't do a visual of it cos I'm on my iPad)


forever
STAY HAPPY!
end
mendekim000
New to Scratch
1 post

when two sprites touch how do you make them disappear?

did not WORK!!!!!!!!!!!!!!!!!!,but anyway thanks!
adorny
New to Scratch
1 post

when two sprites touch how do you make them disappear?

doesnt work even in the forever shell
thelegouglydoll
Scratcher
1 post

when two sprites touch how do you make them disappear?

i needed this answer too, but when i do it it wont work.

Powered by DjangoBB