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

#1 2012-07-29 23:40:28

xoxLettermanxox
New Scratcher
Registered: 2012-07-29
Posts: 3

make a row of random order sprites?

Is it possible, and or how do you make a row of sprites at the top of your screen in a random order, so everytime you get rid of them  a new bunch come up.

Offline

 

#2 2012-07-29 23:44:09

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: make a row of random order sprites?

You could have the previously deleted sprites become the new ones at the top.

Do a simple script that commands that if they are hit and disappear, go back to the top at a random spot.

Do this with tiny time differences. Like .01 seconds. So that the first one goes somewhere random. The second one goes somewhere random BUT if there's already the first on there it tries again. Third does the same, and so on.

Also, I've seen at least 3 different topics where you've asked this question. Please keep the forums orderly and keep relevant questions in one thread.

Last edited by soupoftomato (2012-07-29 23:44:47)


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

Board footer