This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-06-07 07:09:17

Jo_WhizzkidsIT
New Scratcher
Registered: 2012-05-14
Posts: 7

Disappearing Target

Hi all, I'm designing a game in which the player is a shark trying to eat all the little fish.  I have little fish sprites that swim around until they are eaten.  They then disappear and reappear a few seconds later and continue in this manner until the game is over.  I also have two poison fish that will trigger Game Over if you try to eat them.  So far so fun.

The next step I took was trying adding another sprite that is a bonus sprite.  If you eat the bonus sprite you get five points instead of one.  It is designed to wait longer before reappearing than the other small fish.  All this is working fine too. 

My problem is this: I want to make it so that if you don't get to the bonus fish within 3 seconds it dissappears.

I'm still trying to get the hang of writing scratch blocks so I hope you don't mind if I just try to explain in layman's terms what I have:

when gf is click
forever
move 2 steps
if on edge bounce
if (touching sprite 1)
   change (score) by 5
    hide
    wait (5) seconds

Offline

 

#2 2012-06-07 09:32:45

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Disappearing Target

It appears you posted this twice, and since the other has more replies, i'll close this to keep the discussion all in one place.  smile
http://scratch.mit.edu/forums/viewtopic … e's a link to the other.

Offline

 

Board footer