Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do I make a sprite disappear when it touches another sprite?
- TastyOatmeal
- New Scratcher
3 posts
How do I make a sprite disappear when it touches another sprite?
I'm making a game where apples fall from the top of the screen and the object is catch them in a bowl at the bottom. The problem I'm running into is having the apple disappear when it touches the bowl. I can't seem to get the script to recognize when an apple has touched the bowl. I've searched up other topics that cover this, and I'm using an If control to hide the apple when it's touching the bowl. What am I missing?
https://scratch.mit.edu/projects/326947588
The left & right arrows move the bowl from side to side.
https://scratch.mit.edu/projects/326947588
The left & right arrows move the bowl from side to side.
- Vrpndt
- Scratcher
24 posts
How do I make a sprite disappear when it touches another sprite?
I've fixed it for you:
https://scratch.mit.edu/projects/327217757/
You needed to put the script that checks if the apple is touching the bowl in a separate script and also have it in a forever loop.
Hope I helped!
https://scratch.mit.edu/projects/327217757/
You needed to put the script that checks if the apple is touching the bowl in a separate script and also have it in a forever loop.
Hope I helped!
- TastyOatmeal
- New Scratcher
3 posts
How do I make a sprite disappear when it touches another sprite?
Thank you. Much appreciated.
Why does it work as its own script but not when combined with the falling script? I'm new at this and still learning these nuances.
Why does it work as its own script but not when combined with the falling script? I'm new at this and still learning these nuances.
- Breck-
- Scratcher
100+ posts
How do I make a sprite disappear when it touches another sprite?
If you’re putting the if statement in the same code block as the “glide”, it won’t work because Scratch compiles the code top down - it won’t detect the if clause if it’s currently gliding (for 1.7s). I also note you need a forever block around the “if touching edge”
- TastyOatmeal
- New Scratcher
3 posts
How do I make a sprite disappear when it touches another sprite?
Gotcha. Thank you.
Yeah, the determining what happens when the apple reaches the bowl or the bottom edge is a work-in-progress. Currently learning about how clones may help me here…
Yeah, the determining what happens when the apple reaches the bowl or the bottom edge is a work-in-progress. Currently learning about how clones may help me here…
- cs4331720
- New Scratcher
1 post
How do I make a sprite disappear when it touches another sprite?
No thank you u didn’t help me!
- MosesGaming
- Scratcher
100+ posts
How do I make a sprite disappear when it touches another sprite?
please dont necropost No thank you u didn’t help me!
necroposting : posting on a thread that already finished.
- POS_tutor_
- Scratcher
100+ posts
How do I make a sprite disappear when it touches another sprite?
Don't necropost No thank you u didn’t help me!
- Saveourworld-Daisy
- New Scratcher
3 posts
How do I make a sprite disappear when it touches another sprite?
I'm doing a similar game, can you please tell me how to make the fruit disappear when it touches the bowl. I NEED URGENT HELP!!!
- Saveourworld-Daisy
- New Scratcher
3 posts
How do I make a sprite disappear when it touches another sprite?
LIKE TONIGHT! PLEASE!!
- Saveourworld-Daisy
- New Scratcher
3 posts
How do I make a sprite disappear when it touches another sprite?
Nevermind I found it out
- Sparkely_Bubbles
- New Scratcher
3 posts
How do I make a sprite disappear when it touches another sprite?
My game is that the sprite, space shooter, has to shoot all the watermelons, but has to die when the watermelon touches it. I dont know how to make it die and then end the game.
- Sparkely_Bubbles
- New Scratcher
3 posts
How do I make a sprite disappear when it touches another sprite?
I need this before 5 days. PLEASE HELP!!!
- CamG777
- Scratcher
100+ posts
How do I make a sprite disappear when it touches another sprite?
If you have a question. Please open your own thread post!
- CoolBoy4286
- Scratcher
100+ posts
How do I make a sprite disappear when it touches another sprite?
(#12)Please create your own topic rather than necroposting.
My game is that the sprite, space shooter, has to shoot all the watermelons, but has to die when the watermelon touches it. I dont know how to make it die and then end the game.
- Sparkely_Bubbles
- New Scratcher
3 posts
How do I make a sprite disappear when it touches another sprite?
ok sry
- SUSKING11
- New Scratcher
1 post
How do I make a sprite disappear when it touches another sprite?
How do I make a sprite disappear when it touches another sprite?
- Oumuamua
- Scratcher
1000+ posts
How do I make a sprite disappear when it touches another sprite?
How do I make a sprite disappear when it touches another sprite?
when green flag clicked
show
wait until <touching [anothrt sprite v] ?>
hide
Please, do not revive old topics; next time you need help create your own topic.
Bye.
- Discussion Forums
- » Help with Scripts
- » How do I make a sprite disappear when it touches another sprite?