Discuss Scratch

plutonium21
Scratcher
14 posts

How do you make a sprite move around randomly?

when green flag clicked
forever

go to x: (pick random () to (10)) y: (0(pick random () to (10)))
end
plutonium21
Scratcher
14 posts

How do you make a sprite move around randomly?

oops
when green flag clicked
go to x: (pick random () to (10)) to (10)) to (10)) y: (pick random () to (10))
plutonium21
Scratcher
14 posts

How do you make a sprite move around randomly?

o come on sorry guys messed up again. when flag clicked, forever go to x: pick random 1 - 10 y: pick random 1 - 10
deck26
Scratcher
1000+ posts

How do you make a sprite move around randomly?

This topic is old - please stop necroposting.
asalgado0
New Scratcher
1 post

How do you make a sprite move around randomly?

this is the easiest one ever
deck26
Scratcher
1000+ posts

How do you make a sprite move around randomly?

asalgado0 wrote:

this is the easiest one ever
You comment doesn't add anything useful to what is already an old topic. Please post sensibly.
KKGamer1610
Scratcher
32 posts

How do you make a sprite move around randomly?

GUYS!!! This is easier-
when gf clicked
forever
go to [random position]
The block in the palette will normally be
go to [mouse-pointer]
There is a sprite (or mouse-pointer) selection there… but ‘random position’ is also listed there!

Last edited by KKGamer1610 (March 28, 2016 18:54:33)

KKGamer1610
Scratcher
32 posts

How do you make a sprite move around randomly?

AgentCNF wrote:

It couldn't be done without this block

(pick random () to ())
Actually, it could.
when gf clicked
forever
go to [random position]
Yes, it is an actual block. Go look for it!

Last edited by KKGamer1610 (March 28, 2016 18:58:12)

KKGamer1610
Scratcher
32 posts

How do you make a sprite move around randomly?

plutonium21 wrote:

o come on sorry guys messed up again. when flag clicked, forever go to x: pick random 1 - 10 y: pick random 1 - 10
It's
go to x: (pick random (1) to (10)) y: (pick random (1) to (10))
go to x: (pick random (1) to (10)) y: (pick random (1) to (10))

Last edited by KKGamer1610 (March 28, 2016 19:04:25)

gavinskycastle
Scratcher
85 posts

How do you make a sprite move around randomly?

Use the

(pick random () to ())

block. It will choose a random number. So for example if I wanted to make him move around randomly, I would use:

when green flag clicked
move (pick random () to ()) steps
deck26
Scratcher
1000+ posts

How do you make a sprite move around randomly?

This is old - can people please stop necroposting.
-Spectrum
Scratcher
500+ posts

How do you make a sprite move around randomly?

Attention!

This is an old topic. The question that the creator had was answered ages ago; and now any posts count as necroposting. Everyone is just repeating what others have already said. Please stop posting now - the discussion counts as closed.

Thank you

HoloWiseWolf
Scratcher
1 post

How do you make a sprite move around randomly?

if you want it to move in a certain space limit,

| |repeat]——————————————
| |go to x:0 y:0
| |change x by <pick random 1 to 10>
| |change y br <pick random 1 to 10>
| |wait 1 second
|——————————————————
azure1025
Scratcher
30 posts

How do you make a sprite move around randomly?

-Spectrum wrote:

Attention!

This is an old topic. The question that the creator had was answered ages ago; and now any posts count as necroposting. Everyone is just repeating what others have already said. Please stop posting now - the discussion counts as closed.

Thank you

I think you can disable the discussion somewhere.
sunnywong2
Scratcher
5 posts

How do you make a sprite move around randomly?

here somting
when green flag clicked
forever

glide (pick random (1) to (10)) secs to x: (pick random (-240) to (240)) y: (pick random (-240) to (240))

end
asivi
Scratcher
1000+ posts

How do you make a sprite move around randomly?

sunnywong2 wrote:

here somting
when green flag clicked
forever

glide (pick random (1) to (10)) secs to x: (pick random (-240) to (240)) y: (pick random (-240) to (240))

end
Coordinates for Y axis are between -180 and 180, both values included.

Powered by DjangoBB