Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Make Sprite disappear when "eaten by Shark"
- armstrongt11
-
4 posts
Make Sprite disappear when "eaten by Shark"
Hey All,
New to Scratch and am attempting to make an ocean scenario in which the Shark(controlled by the mouse pointer) is supposed to go after the different fish and eat them. However, I cannot manage to get the fish to disappear when the Shark is on top of them. I have tried adding a statement for when the shark is on top of the fish, have the fish change costume to a blank costume…ie: nothing. I am pretty sure the different fish, which are moving around the screen, are not recognizing the touch of the shark. Any ideas?
Thanks!
New to Scratch and am attempting to make an ocean scenario in which the Shark(controlled by the mouse pointer) is supposed to go after the different fish and eat them. However, I cannot manage to get the fish to disappear when the Shark is on top of them. I have tried adding a statement for when the shark is on top of the fish, have the fish change costume to a blank costume…ie: nothing. I am pretty sure the different fish, which are moving around the screen, are not recognizing the touch of the shark. Any ideas?
Thanks!
- 1234abcdcba4321
-
1000+ posts
Make Sprite disappear when "eaten by Shark"
In fish sprite:
That's all you need…
That's all you need…
- armstrongt11
-
4 posts
Make Sprite disappear when "eaten by Shark"
Hmmmm…but then it doesnt start when the flag his pressed?
I have it set up so that when the * is pressed, if it touches shark, then it hides. However, it doesnt look like that is working.
I have it set up so that when the * is pressed, if it touches shark, then it hides. However, it doesnt look like that is working.
- armstrongt11
-
4 posts
Make Sprite disappear when "eaten by Shark"
Scratch that, looks like it worked! Not sure why it didn't go through the first time!
- armstrongt11
-
4 posts
Make Sprite disappear when "eaten by Shark"
Now it appears I cannot move the sprite…I have it set to move randomly about the map and it appears it doesn't want to work
- PreoKid
-
100+ posts
Make Sprite disappear when "eaten by Shark"
What scripts are you using to move it?
- scubajerry
-
1000+ posts
Make Sprite disappear when "eaten by Shark"
The basic problem is that while you are gliding, you are not sensing. See fish2 in my remix.
- MMHMMH
-
100+ posts
Make Sprite disappear when "eaten by Shark"
clones don't respond to Scratch that, looks like it worked! Not sure why it didn't go through the first time!
they only respond to
- MMHMMH
-
100+ posts
Make Sprite disappear when "eaten by Shark"
I visited the project….the shark is moving around fine right? What's wrong? Now it appears I cannot move the sprite…I have it set to move randomly about the map and it appears it doesn't want to work
- queenfeen
-
1 post
Make Sprite disappear when "eaten by Shark"
realy works but how do u make the fish re apper In fish sprite:
That's all you need…
- Robotron3000
-
100+ posts
Make Sprite disappear when "eaten by Shark"
Here is your specific answer:
When I have attempted to do this programming this block does NOT work :
So if you are doing something like that then use this:

When I have attempted to do this programming this block does NOT work :
So if you are doing something like that then use this:
You're welcome

- deck26
-
1000+ posts
Make Sprite disappear when "eaten by Shark"
You should add a ‘show’ to all the fish so they appear after the green flag is clicked. As has already been pointed out the main problem is you're gliding instead of moving and you can't detect that you're touching the shark until the glide is done by which time you might not be touching.
If you do want to use glide then split the ‘if touching shark’ to a separate script along the lines of
If you do want to use glide then split the ‘if touching shark’ to a separate script along the lines of
- Frostface
-
2 posts
Make Sprite disappear when "eaten by Shark"
How about try:realy works but how do u make the fish re apper In fish sprite:
That's all you need…
- deck26
-
1000+ posts
Make Sprite disappear when "eaten by Shark"
The important thing is getting the fish to appear at the start.
- pusheenkittens
-
100+ posts
Make Sprite disappear when "eaten by Shark"
please show the scripts so i can figure out ^-^
you don't have to show the project, click the 14th icon on the reply box and put the order of the scripts/blocks
you don't have to show the project, click the 14th icon on the reply box and put the order of the scripts/blocks
- Shift_key
-
1 post
Make Sprite disappear when "eaten by Shark"
do u know how to make a sprite eat another sprite when its bigger than it


- arman516
-
500+ posts
Make Sprite disappear when "eaten by Shark"
or
Last edited by arman516 (Oct. 17, 2015 15:11:10)
- AnimeWarrior0510
-
25 posts
Make Sprite disappear when "eaten by Shark"
I have made a similar game and I did this:
Hope this helps
Hope this helps

Last edited by AnimeWarrior0510 (Oct. 17, 2015 15:52:26)
- Discussion Forums
- » Help with Scripts
-
» Make Sprite disappear when "eaten by Shark"