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
<when green flag clicked>
<forever>
<if><touching[ whale
<go to x <pick random( -240 )to( 240 )y <pick random( -180 )to( 180
<end>
<end>
Last edited by hmnwilson (2008-12-19 20:44:09)
Offline
Use this:
[blocks]<go to x <pick random( -240 )to( 240 )y <pick random( -180 )to( 180
<glide( number )secs to x whale's x )y whale's y [/blocks]
That should work well
Last edited by technoguyx (2008-12-19 20:45:08)
Offline
technoguyx wrote:
Use this:
[blocks]<go to x <pick random( -240 )to( 240 )y <pick random( -180 )to( 180 [/blocks]
That should work well
lol, we replied at the same time.
Offline
hmnwilson wrote:
technoguyx wrote:
Use this:
[blocks]<go to x <pick random( -240 )to( 240 )y <pick random( -180 )to( 180 [/blocks]
That should work welllol, we replied at the same time.
Yeah... But then I edited my post
Offline
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 <pick random( -240 )to(240 )y <pick random(-180 )to( 180
<end> [/blocks]
hope this works out for you, secondsteven
~bart9032
Offline
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)
Offline