This is a place where you can post new blocks you have made and the code you used to make the block.
I will start.
One block I have made is a replacement for the comment block in scratch 1.2.1.
Add to Scratch-Objects -> ScriptableScratchMorph -> blockSpecs -> class -> blockSpecs:
('comment %s' #c #commentLoopBlock)Add to Scratch-Execution Engine -> ScratchProcess -> Instance:
commentLoopBlock
| t1 |
t1 <- stackFrame expression.
self popStackFrame.
self pushStackFrame: (ScratchStackFrame new expression: t1 firstBlockList)This block will execute the contents of the c-shaped block, and you can comment on the contents of the block too.
By the way, please only comment if you are either complimenting someone's block or posting your own block. If you are going to say something like 'That blocks sounds cool, but you can do this instead with other blocks: ...' please do not comment
Last edited by rubiks_cube_guy238 (2009-10-18 21:05:02)
Offline
coolstuff wrote:
Very interesting
I don't have the source code so I wouldn't be able to test them, but they do sound very interesting, though I'm not quite sure of the purpose of a comment block when we already have comments...
The source code is available for download on the website...
and the advantage of the comment block is that it attaches into a script as a block.
Offline
gershmer wrote:
coolstuff wrote:
Very interesting
I don't have the source code so I wouldn't be able to test them, but they do sound very interesting, though I'm not quite sure of the purpose of a comment block when we already have comments...
The source code is available for download on the website...
and the advantage of the comment block is that it attaches into a script as a block.
Thanks
And I guess the advantages are true... but in 1.4 you can attatch the comments to blocks, which works great for me.
Offline
coolstuff wrote:
Very interesting
I don't have the source code so I wouldn't be able to test them, but they do sound very interesting, though I'm not quite sure of the purpose of a comment block when we already have comments...
You can get the scratch source code here.
Offline
yes and the 1.4 source was released recently
Offline