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

#1 2012-07-20 17:20:06

bullelk12
Scratcher
Registered: 2012-05-26
Posts: 100+

map number generator

After a lot of fails I finally got my map to generate randomly. But the scripts are very long and obnoxious to work with. That would be ok but now I need a random number to appear over each square in the map (19 squares total). But it can't be entirely random. Their can only be a single 2 in the list of numbers two 2's in the list two 3's in the list and so forth.

Is there an easy way to make sure that all the numbers are random but without picking too many of the same number?


http://mag.racked.eu/cimage/i6000/Achievement++get%21/Scratcher+love+minecraft%21/mca.png

Offline

 

#2 2012-07-20 17:52:03

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: map number generator

bullelk12 wrote:

After a lot of fails I finally got my map to generate randomly. But the scripts are very long and obnoxious to work with. That would be ok but now I need a random number to appear over each square in the map (19 squares total). But it can't be entirely random. Their can only be a single 2 in the list of numbers two 2's in the list two 3's in the list and so forth.

Is there an easy way to make sure that all the numbers are random but without picking too many of the same number?

There is...but I can't quite understand what the italicized sentence.  Could you explain it a little better?


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#3 2012-07-20 19:12:58

Keesicool
Scratcher
Registered: 2012-02-12
Posts: 10

Re: map number generator

Well as a starter to reduce lag and make it shorter then 19 blocks you could just shorten the scripts with pick random scripts and also for the numbers over the map thing...nobody under stands the italisized.


http://trinary.site40.net/images/scratchrank.php?username=keesicool&display=small

Offline

 

Board footer