Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » when two sprites touch how do you make them disappear?
- 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?
- cobraguy
- Scratcher
1000+ posts
when two sprites touch how do you make them disappear?
I just made it more visual. In the sprite you want to disappear, put this script:if <touching [the other sprite v]> then
hide
end
Last edited by cobraguy (Nov. 12, 2013 22:33:25)
- jontmy00
- Scratcher
500+ posts
when two sprites touch how do you make them disappear?
Which happens to be a thread from 1/2 a year ago.I just made it more visual. In the sprite you want to disappear, put this script:if <touching [the other sprite v]> then
hide
end
- 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?
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?
You want to put the script into a Flag-Clicked\Forever shell, like so: that doesn't work at all
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?
Just use the “show” block; it's in the Looks bar. 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?
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!
If<touching>then
hide
Hope it helps!
- kagawa123
- New to Scratch
8 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?
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?
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?
GO TO LOOKS AND DO SHOW how do u make it reappear???????
- Chock_cake
- Scratcher
23 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?
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.
- Discussion Forums
- » Help with Scripts
- » when two sprites touch how do you make them disappear?