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

#1 2009-10-25 19:57:05

clumeclo
Scratcher
Registered: 2009-07-23
Posts: 2

Make Sprites Randomly Wander About?

Does anyone know how to make a sprite wander about the screen randomly? Any help appreciated!

P.S. It's for a game.

Offline

 

#2 2009-10-25 21:17:19

steppenwulf
Scratcher
Registered: 2009-07-23
Posts: 1000+

Re: Make Sprites Randomly Wander About?

<when green flag clicked>
<forever>
<wait( 3 )secsc>
<glide( 2 )secs to x sad  <pick random( 180 )to( -180 )y sad  <pick random(260  )to( -260

Hope that works.


I'm graduating HS this April and going to college in the Fall.

Offline

 

#3 2009-10-25 23:52:10

clumeclo
Scratcher
Registered: 2009-07-23
Posts: 2

Re: Make Sprites Randomly Wander About?

Yes, very much, thanks!

Offline

 

Board footer