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
500+ 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.

Hello.
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
100+ 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

Platypi Forever, Dragons Supreme!
Mountain Dodge: Inspired by WatsonLJ
if <(platypus) = [platypus]> then

set [platypus v] to [platypus]
end
picopaper
Scratcher
100+ 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

Platypi Forever, Dragons Supreme!
Mountain Dodge: Inspired by WatsonLJ
if <(platypus) = [platypus]> then

set [platypus v] to [platypus]
end
mariobros406
Scratcher
100+ 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.


Please don't ask for followers. Create projects for fun, not for attention. “If you build it, they will come.” ~ noamkoren
Click on one of these words...or all of 'em! I'm serious! DOOO IIIT NAAAOOO!!! Pwetty pwease?
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

ppettitt is currently:
Offline
________________________________________________________________
What's the point of even making a forum signature anyway? No one ever reads forum signatures, unless they have a really eye-catching gif; but I'm too lazy to make a gif right now. No one is ever going to read this, because it is boring and anyone who reads this would be wasting 30 seconds of his life reading this pointless paragraph. No one ever reads any of my stuff, including me, wait… are you still reading this? Really??? Wow, you are one of the only people who has read this pointless paragraph. Well, be sure to check out my profile and give me a follow if you like my projects. Thanks!
P.S. I am have been using scratch since 1.2! But I didn't join the community until about 7 months ago.
;
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
New to Scratch
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

Standard | Mobile