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

#1 2010-04-24 02:06:02

meew0
Scratcher
Registered: 2010-02-22
Posts: 1000+

My first own block!

The join [] with [] and [] and [] block

Shift-Click the loop of the R in the Scratch-Logo and select "turn fill screen off".
Click in the white area that appears and click open, then browser.

Go to Scratch-Objects -> ScriptableScratchMorph -> string ops -> concatenate:with:
Copy this code:

Code:

concatenate: t1 with: t2 and: t3 and: t4 
    | t5 t6 |
    t5 _ t1 asString , t2 asString.
    t6 _ t3 asString , t4 asString.
    ^ t5 asString asUTF8 , t6 asString asUTF8

Press Alt+A, Alt+V and Alt+S.

Press "class" -> block specs -> blockSpecs and copy this:

Code:

('join %s %s' #r #concatenate:with: 'hello ' 'world')

Press Alt+F and Alt+V.
Insert this code after the selected code:

Code:

 ('join %s with %s and %s and %s' #r #concatenate:with:and:and: '' '' '' '')

Press Alt+S and close the browser.

Shift-Click the loop of the R again.
Select "turn fill screen off".
Shift-Click the loop another time.
Select "save image for end-user" and "yes".
Start Scratch again.
Go to "Operators".

You now have a block "join [] with [] and [] and []"!


http://i.imgur.com/mJV3j.pnghttp://i.imgur.com/HwWAX.pnghttp://i.imgur.com/sZ7Ui.pnghttp://i.imgur.com/0y6yh.pnghttp://i.imgur.com/nOC4l.png

Offline

 

#2 2010-04-24 08:37:28

laser100
Scratcher
Registered: 2009-12-04
Posts: 100+

Re: My first own block!

Yay! I luv it!

Offline

 

#3 2010-04-24 19:13:51

qwertypower
Scratcher
Registered: 2010-02-24
Posts: 100+

Re: My first own block!

You make it so easy. But you need more detailed instructions because whenever
I do you what you say, It asks me for something not in your post.  sad


http://img690.imageshack.us/img690/8586/x1eo8x.png  http://img690.imageshack.us/img690/9164/logozrv.png
http://img693.imageshack.us/img693/8186/image843.png      http://img411.imageshack.us/img411/406/bobs.png      http://img535.imageshack.us/img535/2898/firegrob.png     Add zip the cybug, bob the sea urchin, and firegrob to your sig!

Offline

 

#4 2010-04-25 01:37:23

meew0
Scratcher
Registered: 2010-02-22
Posts: 1000+

Re: My first own block!

I can help you. What asks it you?


http://i.imgur.com/mJV3j.pnghttp://i.imgur.com/HwWAX.pnghttp://i.imgur.com/sZ7Ui.pnghttp://i.imgur.com/0y6yh.pnghttp://i.imgur.com/nOC4l.png

Offline

 

#5 2010-05-08 13:49:44

qwertypower
Scratcher
Registered: 2010-02-24
Posts: 100+

Re: My first own block!

meew0 wrote:

I can help you. What asks it you?

Things like "command not recognised" or sometimes even it asks you for your initials.


http://img690.imageshack.us/img690/8586/x1eo8x.png  http://img690.imageshack.us/img690/9164/logozrv.png
http://img693.imageshack.us/img693/8186/image843.png      http://img411.imageshack.us/img411/406/bobs.png      http://img535.imageshack.us/img535/2898/firegrob.png     Add zip the cybug, bob the sea urchin, and firegrob to your sig!

Offline

 

#6 2010-05-08 13:57:44

dav09
Scratcher
Registered: 2009-03-25
Posts: 1000+

Re: My first own block!

that could be because you need to save it my entering your initials, or wit the unreconise prob did you change the instance?

Offline

 

#7 2010-05-08 14:59:11

meew0
Scratcher
Registered: 2010-02-22
Posts: 1000+

Re: My first own block!

Can you post everything what happens when you try this guide out? Really, EVERYTHING.


http://i.imgur.com/mJV3j.pnghttp://i.imgur.com/HwWAX.pnghttp://i.imgur.com/sZ7Ui.pnghttp://i.imgur.com/0y6yh.pnghttp://i.imgur.com/nOC4l.png

Offline

 

Board footer