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

#1 2011-08-01 17:21:44

poose
Scratcher
Registered: 2010-09-29
Posts: 26

A from block

It would be good if there was a block that instead of having to write loads of or's you could just used a a block that said number( ) to number( ). Would help when you want to make notices when the cursors and stuff are around an entire area not just one spot, its easy to do that anyway but would help if that block was made  smile .


big_smile  click for epicness  big_smile  click to read the story i made  big_smile   My curated project  big_smile
                               [/img]http://www.prguitarman.com/comics/poptart1red1.gif

Offline

 

#2 2011-08-01 17:29:29

BoltBait
Scratcher
Registered: 2009-03-09
Posts: 1000+

Re: A from block

So, you'd like a block like this:

< [_______] is between [____] and [____] >


Animated sigs must be banned!
http://boltbait.com/j.pnghttp://boltbait.com/s.pnghttp://boltbait.com/d.pnghttp://boltbait.com/a.pnghttp://boltbait.com/p.png

Offline

 

#3 2011-08-01 17:35:41

poose
Scratcher
Registered: 2010-09-29
Posts: 26

Re: A from block

BoltBait wrote:

So, you'd like a block like this:

< [_______] is between [____] and [____] >

yup thats pretty much it.

ugh 180 seccond error


big_smile  click for epicness  big_smile  click to read the story i made  big_smile   My curated project  big_smile
                               [/img]http://www.prguitarman.com/comics/poptart1red1.gif

Offline

 

#4 2011-08-01 18:05:18

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: A from block

Couldn't you just use the less than and greater than blocks to achieve the same effect? Just check if the variable is less than your maximum value and greater than your minimum value.  hmm


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#5 2011-08-01 18:39:26

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: A from block

What we need is
<greatest out of _____ _____> and the ability to make more or less comparing things

Offline

 

#6 2011-08-02 05:54:16

poose
Scratcher
Registered: 2010-09-29
Posts: 26

Re: A from block

Harakou wrote:

Couldn't you just use the less than and greater than blocks to achieve the same effect? Just check if the variable is less than your maximum value and greater than your minimum value.  hmm

I know you can its a bit of a pain tho :L


big_smile  click for epicness  big_smile  click to read the story i made  big_smile   My curated project  big_smile
                               [/img]http://www.prguitarman.com/comics/poptart1red1.gif

Offline

 

#7 2011-08-02 09:25:04

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: A from block

poose wrote:

Harakou wrote:

Couldn't you just use the less than and greater than blocks to achieve the same effect? Just check if the variable is less than your maximum value and greater than your minimum value.  hmm

I know you can its a bit of a pain tho :L

That's the fun of programming, no? If everything is handed to you on a silver platter, things get a bit boring. In other programming languages, you'd have to work a lot of the programming out for yourself.

Offline

 

#8 2011-08-02 10:31:11

poose
Scratcher
Registered: 2010-09-29
Posts: 26

Re: A from block

coolstuff wrote:

poose wrote:

Harakou wrote:

Couldn't you just use the less than and greater than blocks to achieve the same effect? Just check if the variable is less than your maximum value and greater than your minimum value.  hmm

I know you can its a bit of a pain tho :L

That's the fun of programming, no? If everything is handed to you on a silver platter, things get a bit boring. In other programming languages, you'd have to work a lot of the programming out for yourself.

and most people work out the scratch language out for themselves :L besides i thought scratch was ment to be beginner friendly and you don't seem to be proving that.

Last edited by poose (2011-08-02 10:31:46)


big_smile  click for epicness  big_smile  click to read the story i made  big_smile   My curated project  big_smile
                               [/img]http://www.prguitarman.com/comics/poptart1red1.gif

Offline

 

#9 2011-08-02 12:03:54

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: A from block

poose wrote:

coolstuff wrote:

poose wrote:


I know you can its a bit of a pain tho :L

That's the fun of programming, no? If everything is handed to you on a silver platter, things get a bit boring. In other programming languages, you'd have to work a lot of the programming out for yourself.

and most people work out the scratch language out for themselves :L besides i thought scratch was ment to be beginner friendly and you don't seem to be proving that.

It is meant to be beginner friendly, but it's also meant to segway into the more advanced programming languages, when you'd have to problem solve to figure out how to do this.  smile

Offline

 

#10 2011-08-02 16:40:59

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: A from block

coolstuff wrote:

poose wrote:

coolstuff wrote:


That's the fun of programming, no? If everything is handed to you on a silver platter, things get a bit boring. In other programming languages, you'd have to work a lot of the programming out for yourself.

and most people work out the scratch language out for themselves :L besides i thought scratch was ment to be beginner friendly and you don't seem to be proving that.

It is meant to be beginner friendly, but it's also meant to segway into the more advanced programming languages, when you'd have to problem solve to figure out how to do this.  smile

Exactly. Scratch is supposed to be easy to learn, but it's not intended to do all the work for you. Learning is the entire point of Scratch, so making lots of pre-programmed stuff would be counter-intuitive.


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#11 2011-08-02 18:27:44

cygene
Scratcher
Registered: 2011-05-31
Posts: 100+

Re: A from block

This block actually exists in NXT-G, a robotic programming language that I think is made by the same group (MIT Lifetime Kindergarten). I don't think this is needed as it is easy to replace it with:
[[ ___ > Lower limit] and [ ___ < higher limit]]


http://cygene.wikispaces.com/file/view/clip2.gif/242526033/clip2.gif

Offline

 

Board footer