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

#1 2012-06-09 16:16:05

joletole
Scratcher
Registered: 2011-02-20
Posts: 1000+

A step-by-step guide on how to add blocks into Scratch!

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:

Code:

message selector and argument names
    "comment stating purpose of message"
    
    | temporary variable names |
    statements

17. 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

 

#2 2012-06-09 16:55:17

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: A step-by-step guide on how to add blocks into Scratch!

Useful guide. Most of the other ones I've seen are incomplete in some way.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#3 2012-06-09 22:13:17

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: A step-by-step guide on how to add blocks into Scratch!

Or use dreamod's importer (once there's a stable release).  tongue

Good guide, though. Would you mind if I ported it over to the Wiki?


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#4 2012-06-09 22:20:11

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: A step-by-step guide on how to add blocks into Scratch!

That's a very useful guide.


http://trinary.tk/images/signature_.php

Offline

 

#5 2012-06-09 22:25:15

joletole
Scratcher
Registered: 2011-02-20
Posts: 1000+

Re: A step-by-step guide on how to add blocks into Scratch!

Hardmath123 wrote:

Or use dreamod's importer (once there's a stable release).  tongue

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

 

#6 2012-06-09 23:18:53

chanmanpartyman
Scratcher
Registered: 2011-05-30
Posts: 500+

Re: A step-by-step guide on how to add blocks into Scratch!

joletole wrote:

Hardmath123 wrote:

Or use dreamod's importer (once there's a stable release).  tongue

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

 

#7 2012-06-10 00:03:45

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: A step-by-step guide on how to add blocks into Scratch!

chanmanpartyman wrote:

joletole wrote:

Hardmath123 wrote:

Or use dreamod's importer (once there's a stable release).  tongue

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.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#8 2012-06-10 07:27:22

joletole
Scratcher
Registered: 2011-02-20
Posts: 1000+

Re: A step-by-step guide on how to add blocks into Scratch!

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!  smile

Offline

 

#9 2012-06-11 09:54:24

joletole
Scratcher
Registered: 2011-02-20
Posts: 1000+

Re: A step-by-step guide on how to add blocks into Scratch!

bump

Offline

 

#10 2012-06-11 10:22:38

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: A step-by-step guide on how to add blocks into Scratch!

Cool guide!

Question: In what language is that? Smalltalk?


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&display=small

Offline

 

#11 2012-06-22 07:50:10

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: A step-by-step guide on how to add blocks into Scratch!

SciTecCf wrote:

Cool guide!

Question: In what language is that? Smalltalk?

Squeak.


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

Board footer