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

#1 2011-02-24 13:58:31

spud2451
Scratcher
Registered: 2010-05-01
Posts: 100+

i need help with building blocks!!!!!!!!!!!

i'm new to making home made scratch blocks and i want to learn the syntax better. CAN SOMEONE PLEEEEEEEEEEEEEEEEEEASE HELP ME.

Last edited by spud2451 (2011-03-03 06:43:31)


http://www.xenopages.comze.com/upload/rippleos.gif

Offline

 

#2 2011-02-24 14:38:30

spud2451
Scratcher
Registered: 2010-05-01
Posts: 100+

Re: i need help with building blocks!!!!!!!!!!!

Someone Please!!!!!!!!!!!!!!!!!!


http://www.xenopages.comze.com/upload/rippleos.gif

Offline

 

#3 2011-02-24 15:37:24

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: i need help with building blocks!!!!!!!!!!!

look at the source code for RAGE. [url]rageprogramming.weebly.com[/ure\l]


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#4 2011-02-24 15:39:23

spud2451
Scratcher
Registered: 2010-05-01
Posts: 100+

Re: i need help with building blocks!!!!!!!!!!!

ya i know but i want to learn the "SYNTAX"


http://www.xenopages.comze.com/upload/rippleos.gif

Offline

 

#5 2011-02-24 17:12:03

spud2451
Scratcher
Registered: 2010-05-01
Posts: 100+

Re: i need help with building blocks!!!!!!!!!!!

anyone. anyone at all. oh come on, someone please help me!!!!!


http://www.xenopages.comze.com/upload/rippleos.gif

Offline

 

#6 2011-02-26 10:36:19

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: i need help with building blocks!!!!!!!!!!!

Ok, I'll help!  smile
Here is an example of a simple block that I made:

Code:

('pen size'     r     penSize)

Ok, let's break this into bite-size pieces. The 'pen size' thing is the string for the block name. Scratch takes this string and uses it to label the block. The r (short for reporter) is telling the program what kind of block it is. And finally, there is the message selector. This is what method it should run when the user evaluates the block. If this method didn't exist (I forgot), I put it in the category (on the instance side) called 'pen ops'. This is what the method would have looked something like:

Code:

penSize
     "Self explanitory. Report my pen size."
     ^ penSize

But if you already know Smalltalk, then you would know how to create your methods and the syntax for them. If you need any help with that, then please tell me.  smile


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#7 2011-02-26 11:04:38

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: i need help with building blocks!!!!!!!!!!!

spud2451 wrote:

ya i know but i want to learn the "SYNTAX"

Syntax for blocks or Squeak/Smalltalk syntax? Both of which are extremely easy.

Last edited by ScratchReallyROCKS (2011-02-26 11:05:01)


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#8 2011-02-26 14:47:41

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: i need help with building blocks!!!!!!!!!!!

spud2451 wrote:

i'm new to making home made scratch blocks and i want to learn the syntax better. CAN SOMEONE PLEEEEEEEEEEEEEEEEEEASE HELP ME.

No need to spam the 'E' or the '!' in the title ( i need help with building blocks!!!!!!!!!!!)
- let alone the capital 'I'


You can now reach me on Twitter @johnnydean1_

Offline

 

#9 2011-02-28 11:33:31

spud2451
Scratcher
Registered: 2010-05-01
Posts: 100+

Re: i need help with building blocks!!!!!!!!!!!

all i want is help learning now is the commands of squeak and a little bit of the syntax
(i've got the block specks and the and math function blocks down)
i would just like to learn the rest of the language.

Last edited by spud2451 (2011-02-28 14:26:04)


http://www.xenopages.comze.com/upload/rippleos.gif

Offline

 

#10 2011-02-28 20:22:44

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: i need help with building blocks!!!!!!!!!!!

Go to: http://scratch.mit.edu/forums/viewtopic … 73#p661673

Last edited by Pecola1 (2011-02-28 20:23:06)


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

Board footer