look at the source code for RAGE. [url]rageprogramming.weebly.com[/ure\l]
Offline
Ok, I'll help!
Here is an example of a simple block that I made:
('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:
penSize
"Self explanitory. Report my pen size."
^ penSizeBut 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.
Google it.
Offline
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)
Offline
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'
Offline
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)
Offline
Go to: http://scratch.mit.edu/forums/viewtopic … 73#p661673
Last edited by Pecola1 (2011-02-28 20:23:06)
Offline