This is a step-by-step guide on how to add blocks into Scratch. Please also check out this excellent guide. This does not tell you what blockspecs are, this tells you how to import blocks into Scratch.
1. Open Scratch - This isn't that hard.
2. Hold down the shift button, the click the top of the R in Scratch
3. Select turn fill screen off - you should then see big white spaces on the right and bottom of Scratch
4. Click anywhere in the white space, and select open, then select browser - you are now entering the source code.
5. Click Scratch-Objects in the window that pops up
6. In the second box from the top left, select ScriptableScratchMorph
7. In the box below that, click class
8. Click block specs in the box 2nd from the top right
9. Click blockSpecs
10. Find which category you want to put the block in. For this, let's use control.
11. Once you find your category, put a space after and copy and paste the blockspec into it.
12. Right click anywhere, and click accept(s). If on Mac, you have to click the circle above scrollbar.
13. Type in your initials if necessary
14. Remember when you clicked the big "class" button a while ago? Well right next to that big button it says instance in another big button. Click the instance button
15. In the third box from the top left, click "other ops"
16. In the text area, it will say this:
message selector and argument names
"comment stating purpose of message"
| temporary variable names |
statements17. Type in the block code, not the block spec.
18. Right click anywhere in the text and select "accept (s)"
19. Click the small "X" to close the small green window.
20. Shift and click the R in the Scratch logo again.
21. Go to the control palette and you should see your block!
Note: If you are using a block in a group like motion or sensing (these categories are different for sprite and stage), then you have to follow a slightly different procedure. Instead of clicking ScriptableScratchMorph (step 6), you will click ScratchSpriteMorph or ScratchStageMorph
Thanks!
Last edited by joletole (2012-06-10 07:35:47)
Offline
Or use dreamod's importer (once there's a stable release).
Good guide, though. Would you mind if I ported it over to the Wiki?
Offline
Hardmath123 wrote:
Or use dreamod's importer (once there's a stable release).
![]()
Good guide, though. Would you mind if I ported it over to the Wiki?
What do you mean by port. Like copy and paste this into a new page on the wiki.
Offline
joletole wrote:
Hardmath123 wrote:
Or use dreamod's importer (once there's a stable release).
![]()
Good guide, though. Would you mind if I put it on the Wiki?What do you mean by port. Like copy and paste this into a new page on the wiki.
Offline
chanmanpartyman wrote:
joletole wrote:
Hardmath123 wrote:
Or use dreamod's importer (once there's a stable release).
![]()
Good guide, though. Would you mind if I put it on the Wiki?What do you mean by port. Like copy and paste this into a new page on the wiki.
Yeah, but format it using Wiki syntax, add external links, and just rewrite some bits to make it more formal.
Offline
Hardmath123 wrote:
chanmanpartyman wrote:
joletole wrote:
What do you mean by port. Like copy and paste this into a new page on the wiki.Yeah, but format it using Wiki syntax, add external links, and just rewrite some bits to make it more formal.
Yeah sure!
Offline
bump
Offline