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

#1 2008-08-21 14:57:11

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Between block.

I would like a new number block that looks similar to the ( pick random block ) .But it counts numbers in between like (between () and ()) Just a suggestion.

Offline

 

#2 2008-08-21 15:02:10

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Between block.

That's kind of a good idea, it could be useful for situations such as <variable=(between 3 and 5)>, but what would [say (between 3 and 5)] or (5+(between 3 and 5)) do?


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#3 2008-08-21 17:32:33

Ivaash
Scratcher
Registered: 2008-02-08
Posts: 100+

Re: Between block.

fullmoon wrote:

That's kind of a good idea, it could be useful for situations such as <variable=(between 3 and 5)>, but what would [say (between 3 and 5)] or (5+(between 3 and 5)) do?

It would turn it into 8 and 10


Hey there..

Offline

 

#4 2008-08-21 17:56:55

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Between block.

Still a few days/weeks left guys...

Scratch 1.3 will come out this summer (and the summer is almost finished :d ) and contains lists.

I am sure we will see a lot of very new, good and creatice projects - and this might be one of them  smile

Joren


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#5 2008-08-21 18:23:55

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Between block.

Between 3 and 5? Hmmm… same as Pick Random for the most part. And if you are looking if it contains a number between 3 and 5 (a variable) use a list


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#6 2008-08-22 10:25:22

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Between block.

Bluestribute wrote:

Between 3 and 5? Hmmm… same as Pick Random for the most part. And if you are looking if it contains a number between 3 and 5 (a variable) use a list

There are no lists in 1.2.1!  tongue  Try "if(not(variable<3)and not(variable>5)".


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#7 2008-08-22 11:04:12

bigB
Scratcher
Registered: 2007-06-09
Posts: 100+

Re: Between block.

5 + (pick random from (0-2))


http://scratch.mit.edu/projects/bigB/260981 Draw to Text
http://scratch.mit.edu/projects/bigB/181829 3D Stunt Flyer

Offline

 

Board footer