Discuss Scratch

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]> then
hide
change [score v] by (1)
go to x: (pick random (-240) to (240)) y: (pick random (-180) to (180)
show
end
something like that in the fish sprite?

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
The_Grits
Scratcher
1000+ posts

HELP! Cannot make sprite disappear and reappear in loop.

drmcw wrote:

if <touching [shark v]> then
hide
change [score v] by (1)
go to x: (pick random (-240) to (240)) y: (pick random (-180) to (180)
show
end
something like that in the fish sprite?
drmcw has a good answer!


FalconGunner99
Scratcher
1000+ posts

HELP! Cannot make sprite disappear and reappear in loop.

The_Grits wrote:

drmcw wrote:

if <touching [shark v]> then
hide
change [score v] by (1)
go to x: (pick random (-240) to (240)) y: (pick random (-180) to (180)
show
end
something like that in the fish sprite?
drmcw has a good answer!
Second opinion here; Yes, he has the best answer.


; 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.
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.

a-bhargava10 wrote:

can you make something move but when you touch it hides plese!

Please start your own topic rather than necroposting.
Chxp
New to Scratch
1 post

HELP! Cannot make sprite disappear and reappear in loop.

AwesomeSmilee
Scratcher
500+ posts

HELP! Cannot make sprite disappear and reappear in loop.

Chxp wrote:

Please don't smileyspam.
iloveagame
New to Scratch
1 post

HELP! Cannot make sprite disappear and reappear in loop.

deck26
Scratcher
1000+ posts

HELP! Cannot make sprite disappear and reappear in loop.

iloveagame wrote:

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.
bashfulpanda61
Scratcher
16 posts

HELP! Cannot make sprite disappear and reappear in loop.

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)
deck26
Scratcher
1000+ posts

HELP! Cannot make sprite disappear and reappear in loop.

bashfulpanda61 wrote:

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)
Please check the date of the original topic before posting.

Powered by DjangoBB