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

#1 2009-12-10 19:21:29

Ahippo
Scratcher
Registered: 2009-12-10
Posts: 3

How Do You Make <glide( )secs to x:( rand. )y:( rand.)> Blocks?

I have been working with Scratch for a while, and on a recent project (making a foozball game) I could not figure out how to make the ball kick off to a different place every time. I have scoured the Forum boards for answers, but have found none. If you have any ideas, please post them in the comments.

Thanks.

Offline

 

#2 2009-12-10 19:37:22

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: How Do You Make <glide( )secs to x:( rand. )y:( rand.)> Blocks?

http://www.gershmer.net/goto.gif

Put numbers where I put variables.


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#3 2009-12-10 19:38:25

what-the
Scratcher
Registered: 2009-10-04
Posts: 1000+

Re: How Do You Make <glide( )secs to x:( rand. )y:( rand.)> Blocks?

You could use the pick random block.

<glide(  )secs to x sad   <pick random( -240 )to( 240 )y sad  <pick random( -180 )to( 180


http://imageshack.us/m/64/9034/ddfss.pngMy site
Find someone post count. Click posts under username. Find number of pages. Times that by 40 for min and 60 for max and you have a rough estimate of post count.

Offline

 

#4 2009-12-10 20:01:18

Ahippo
Scratcher
Registered: 2009-12-10
Posts: 3

Re: How Do You Make <glide( )secs to x:( rand. )y:( rand.)> Blocks?

Ohhh... now I get it. Thanks!

Offline

 

Board footer