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

#1 2008-12-19 19:11:09

secondsteven
Scratcher
Registered: 2008-12-19
Posts: 10

How to make a sprite mover whereever it likes

Hi im makeing a game where a whale has a bunch of rings comeing at him and i want the rings to come and diffrents spots.  if you know how to do that plz comment

Offline

 

#2 2008-12-19 20:43:33

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: How to make a sprite mover whereever it likes

<when green flag clicked>
  <forever>
    <if><touching[ whale
      <go to x sad  <pick random( -240 )to( 240 )y sad  <pick random( -180 )to( 180
    <end>
  <end>

Last edited by hmnwilson (2008-12-19 20:44:09)


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#3 2008-12-19 20:43:55

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: How to make a sprite mover whereever it likes

Use this:

[blocks]<go to x sad  <pick random( -240 )to( 240 )y sad  <pick random( -180 )to( 180
<glide( number )secs to x sad  whale's x )y sad  whale's y [/blocks]

That should work well  smile

Last edited by technoguyx (2008-12-19 20:45:08)


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#4 2008-12-19 20:44:44

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: How to make a sprite mover whereever it likes

technoguyx wrote:

Use this:

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

That should work well  smile

lol, we replied at the same time.


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#5 2008-12-19 20:45:44

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: How to make a sprite mover whereever it likes

hmnwilson wrote:

technoguyx wrote:

Use this:

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

That should work well  smile

lol, we replied at the same time.

Yeah...  tongue  But then I edited my post  neutral


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#6 2008-12-19 20:46:53

bart9032
Scratcher
Registered: 2008-06-16
Posts: 100+

Re: How to make a sprite mover whereever it likes

if you mean by using glide, I can help you.

To do it you put this block in with 2 of the things that have the variable roundness but says' pick random () to ()'
this is a script for it to work
[blocks]
<when green flag clicked>
<forever>
<glide( the amount of seconds you want it to be )secs to x sad  <pick random( -240 )to(240  )y sad <pick random(-180  )to( 180
<end> [/blocks]
hope this works out for you, secondsteven
~bart9032


Hi, my name is Bartholomew JoJo 'Bart' Simpson. Nice to meet you,
Actually, no I am not Bart Simpson. I am bart9032  cool

Offline

 

#7 2008-12-19 21:13:08

Digimath
Scratcher
Registered: 2007-07-07
Posts: 100+

Re: How to make a sprite mover whereever it likes

There are a lot of good ideas posted already.  If you want more control over where the rings would start from you could use a set of tiny sprites to position the starting points.  Here’s an example.http://scratch.mit.edu/projects/DigimathFixit/356893

Last edited by Digimath (2008-12-19 21:13:51)


I've updated my text adventure game.
Colossal Cave 150http://scratch.mit.edu/static/projects/Digimath/3003787_sm.png

Offline

 

Board footer