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

#1 2008-04-23 20:39:31

amag
Scratcher
Registered: 2008-04-23
Posts: 7

randomization

there should be a block or 2 in the motions list about random movement if it is possible. It is impossible to make my broomstick flying game without it.

Offline

 

#2 2008-04-23 21:34:21

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: randomization

It is pretty easy to make random motion by combining a motion block with the Pick Random block from the Numbers tab.  For example this block will glide to some random spot on the screen:

[blocks]
<glide( 4 )secs to x sad  <pick random(  -240 )to( 240  )y sad  <pick random(  -180 )to( 180
[/blocks]

Last edited by Paddle2See (2008-04-23 21:37:29)


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#3 2008-04-25 10:21:26

amag
Scratcher
Registered: 2008-04-23
Posts: 7

Re: randomization

Paddle2See wrote:

It is pretty easy to make random motion by combining a motion block with the Pick Random block from the Numbers tab.  For example this block will glide to some random spot on the screen:

[blocks]
<glide( 4 )secs to x sad  <pick random(  -240 )to( 240  )y sad  <pick random(  -180 )to( 180
[/blocks]

I'm dumb i never saw that.

Offline

 

Board footer