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

#1 2012-11-16 18:40:33

Bimps1002
New Scratcher
Registered: 2012-11-16
Posts: 2

Doing random scripts

I want to a sprite do random stuff using the random command, but I can't figure it out! please help.

Offline

 

#2 2012-11-16 19:21:56

awesomeness321
Scratcher
Registered: 2012-08-10
Posts: 100+

Re: Doing random scripts

Do you mean choosing a random script to perform?




when gf clicked
set [random v] to (pick random (1) to (10))
if <(random) = [1]>
script 1
end
if <(random) = [2]>
script 2
end
etc

Last edited by awesomeness321 (2012-11-16 19:22:11)


My newest project:http://blocks.scratchr.org/API.php?user=awesomeness321&amp;action=projects&amp;type=newest&amp;return=image&amp;num=1Color:#30F9A5 I am currently http://blocks.scratchr.org/API.php?user=awesomeness321&amp;action=onlineStatus&amp;type=text

Offline

 

#3 2012-11-16 19:49:22

Bimps1002
New Scratcher
Registered: 2012-11-16
Posts: 2

Re: Doing random scripts

Thanks, it seems to work.

Offline

 

Board footer