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

#1 2012-11-04 15:40:35

6302
New Scratcher
Registered: 2012-10-28
Posts: 2

Sprites falling

Hey,

How do I make a sprite fall from the top and keep falling until it lands in a bowl/basket thing? So when I press SPACE, I want the sprite to stop and disappear IF it is touching the colour of the bowl/basket thing. Because now, I can only get the sprite to glide right down to the bottom and it won't stop when it hits the bowl.   

Please help...thanks!

Offline

 

#2 2012-11-04 19:09:38

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Sprites falling

Try using this for the falling part of your script:

show
repeat until <(touching [basket v]?) and (key [space v] pressed?)>
 Filler//The conditional above ^^ detects when to stop.
 change y by (-5)
end
hide
I hope that this helps!

Last edited by ErnieParke (2012-11-04 19:10:17)


http://i46.tinypic.com/35ismmc.png

Offline

 

Board footer