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

#1 2013-01-09 13:48:59

GallileoFigaro
New Scratcher
Registered: 2013-01-08
Posts: 1

Help!

Basically, here is my predicament.

i have to get a blue ball to move down a series of pegs, choosing left or right randomly. I have that done, but i have to loop it so that 120 balls are dropped one after each other, and so that they stack underneath the red pegs, in order of them falling.

like this:
<a href="http://tinypic.com?ref=jqiyat" target="_blank"><img src="http://i50.tinypic.com/jqiyat.jpg" border="0" alt="Image and video hosting by TinyPic"></a>

at the moment, my script looks like this

<a href="http://tinypic.com?ref=33at55u" target="_blank"><img src="http://i49.tinypic.com/33at55u.png" border="0" alt="Image and video hosting by TinyPic"></a>

Any idea guys?

Offline

 

#2 2013-01-09 18:29:37

Pseudo
New Scratcher
Registered: 2013-01-09
Posts: 4

Re: Help!

Do the balls currently fall to the bottom of the screen instead of stacking on one another? So instead of a neat stack, you get several balls on top of each other? If so, I believe you'll want to tack the following on around everything within the repeat nine block.

if <touching color [1500FF]>
      
else
   Put your current code in here
end
If you were instead wanting to use stamps tell me, I could probably work something out for that as well. Hope this helps!

Offline

 

#3 2013-01-09 18:33:13

Pseudo
New Scratcher
Registered: 2013-01-09
Posts: 4

Re: Help!

Ack, looks like my scratchblocks code didn't work so well. Sorry, here's what I was trying to say:
if touching color (whatever your blue color is)
  (leave this blank)
else
   put your current code here


Oh, and you'll want to get BB code for those image links next time, not HTML.

Offline

 

Board footer