Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » HELP! Cannot make sprite disappear and reappear in loop.
- MGIS321
- New to Scratch
1 post
HELP! Cannot make sprite disappear and reappear in loop.
We are designing a game with scratch for a university project. Essentially the objective of our game is to collect points each time the shark eats a fish. We cannot get the fish to disappear once it touches the shark and then reappear in the loop. Any suggestions would be greatly appreciated!
- drmcw
- Scratcher
1000+ posts
HELP! Cannot make sprite disappear and reappear in loop.
if <touching [shark v]> thensomething like that in the fish sprite?
hide
change [score v] by (1)
go to x: (pick random (-240) to (240)) y: (pick random (-180) to (180)
show
end
- The_Grits
- Scratcher
1000+ posts
HELP! Cannot make sprite disappear and reappear in loop.
drmcw has a good answer!if <touching [shark v]> thensomething like that in the fish sprite?
hide
change [score v] by (1)
go to x: (pick random (-240) to (240)) y: (pick random (-180) to (180)
show
end
Scratch Wiki: https://wiki.scratch.mit.edu
Help with Scripts forum: https://scratch.mit.edu/discuss/7/
Questions about Scratch forum: https://scratch.mit.edu/discuss/4/
Contact the ST: https://scratch.mit.edu/contact-us/
- FalconGunner99
- Scratcher
1000+ posts
HELP! Cannot make sprite disappear and reappear in loop.
Second opinion here; Yes, he has the best answer.drmcw has a good answer!if <touching [shark v]> thensomething like that in the fish sprite?
hide
change [score v] by (1)
go to x: (pick random (-240) to (240)) y: (pick random (-180) to (180)
show
end
; Oh this? This is just my semicolon. I got it a long time ago, it's quite innocuous. Don't worry about it.
You —> http://i.imgur.com/iVHfwLc.gifv
- Guggleborn14
- Scratcher
19 posts
HELP! Cannot make sprite disappear and reappear in loop.
Just go to control and get “If (Something) then” and get “touching (shark)” on the rombus like shape and then put “hide” inside of it.
Try it! It works!
I'm new to scratch so i can't post any pictures.
Try it! It works!
I'm new to scratch so i can't post any pictures.
- Guggleborn14
- Scratcher
19 posts
HELP! Cannot make sprite disappear and reappear in loop.
Well it did part of it!
- a-bhargava10
- Scratcher
1 post
HELP! Cannot make sprite disappear and reappear in loop.
can you make something move but when you touch it hides plese!
Last edited by a-bhargava10 (Nov. 7, 2015 07:51:35)
- deck26
- Scratcher
1000+ posts
HELP! Cannot make sprite disappear and reappear in loop.
Please start your own topic rather than necroposting. can you make something move but when you touch it hides plese!
- AwesomeSmilee
- Scratcher
500+ posts
HELP! Cannot make sprite disappear and reappear in loop.
Please don't smileyspam.
- deck26
- Scratcher
1000+ posts
HELP! Cannot make sprite disappear and reappear in loop.
Responding to a post asking someone not to smileyspam by doing it yourself is not very sensible. Please treat the forum with more respect.
- mlg12354jj
- Scratcher
2 posts
HELP! Cannot make sprite disappear and reappear in loop.
when space key pressed
hide.
when space key pressed,
wait 1 secs,
show,
for example,
pulling out a gun, or just making a sprite disappear or reappear on command.
hide.
when space key pressed,
wait 1 secs,
show,
for example,
pulling out a gun, or just making a sprite disappear or reappear on command.
- bashfulpanda61
- Scratcher
16 posts
HELP! Cannot make sprite disappear and reappear in loop.
To Make It Go away Or Reappear
Do This:
For The Shark:
Do This:
when green flag clicked
if <touching [ Shark] ?> then
hide
wait (Number You Want) secs
broadcast [ Caught]
show
end
For The Shark:
when I receive [ Caught]
go to x: (Place) y: (Place)
- deck26
- Scratcher
1000+ posts
HELP! Cannot make sprite disappear and reappear in loop.
Please check the date of the original topic before posting. To Make It Go away Or Reappear
Do This:when green flag clicked
if <touching [ Shark] ?> then
hide
wait (Number You Want) secs
broadcast [ Caught]
show
end
For The Shark:when I receive [ Caught]
go to x: (Place) y: (Place)
- Discussion Forums
- » Help with Scripts
- » HELP! Cannot make sprite disappear and reappear in loop.