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

#1226 2011-06-14 17:35:19

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: ITopic: Welcome to your local block library!

in standard size the library has 49 pages. Though I see your point, including the old thread there are 112 pages! That's a total of 2790 posts!

EDIT: this post broke over to the 50th page  big_smile  So 113 pages!

Last edited by sparks (2011-06-14 17:35:46)


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#1227 2011-06-14 17:39:59

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: ITopic: Welcome to your local block library!

sparks wrote:

in standard size the library has 49 pages. Though I see your point, including the old thread there are 112 pages! That's a total of 2790 posts!

EDIT: this post broke over to the 50th page  big_smile  So 113 pages!

I was originally going to assume mine would go over, but decided I could edit it if it did.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#1228 2011-06-14 20:56:50

TuragaTreeko
Scratcher
Registered: 2011-04-24
Posts: 100+

Re: ITopic: Welcome to your local block library!

Pecola1 wrote:

TuragaTreeko wrote:

Haha, woops. I guess that wasn't as good as I hoped it would be. I'm not all that good at this. But I WILL keep trying! I'm determined.



did you notice I used you as the default value?  smile

Once you get better you wont make as many mistakes.  smile  But notice I said, "as many"  tongue  I make a lot of mistakes still. XD I just recently compleatly forgot to put 'self' before commands for a whole script I was making.  lol   roll  You may not make as many mistakes as I do.

I am so happy that all the Scratchers here help me out. I try to be helpful and NOT annoying, but sometimes I fail at that. I think I gave someone the wrong code for the URL block.  sad

Oh, and also, does anyone know, would I need code for a ('graphic effect %g' #r #report) type block? Please help. Oh, is there a problem with the #report part? I forget how to do the last part on reporters.


http://goo.gl/RDqKF

Offline

 

#1229 2011-06-14 22:04:05

Scriptmaster01
Scratcher
Registered: 2011-03-15
Posts: 6

Re: ITopic: Welcome to your local block library!

here's a panther motion block:

Code:

Point at x: $Number$ y: $Number$

Code:

| t3 t4 |
    t3 _ t1 @ t2 - self referencePosition.
    t4 _ t3 x abs < 0.001
                ifTrue: [t3 y < 0
                        ifTrue: [90]
                        ifFalse: [270]]
                ifFalse: [((t3 x >= 0
                        ifTrue: [0]
                        ifFalse: [180])
                        - ((t3 y / t3 x) arcTan * 57.2957795131)) rounded].
    self rotationDegrees: t4

Offline

 

#1230 2011-06-14 22:17:03

Scriptmaster01
Scratcher
Registered: 2011-03-15
Posts: 6

Re: ITopic: Welcome to your local block library!

TuragaTreeko wrote:

Pecola1 wrote:

TuragaTreeko wrote:

Haha, woops. I guess that wasn't as good as I hoped it would be. I'm not all that good at this. But I WILL keep trying! I'm determined.



did you notice I used you as the default value?  smile

Once you get better you wont make as many mistakes.  smile  But notice I said, "as many"  tongue  I make a lot of mistakes still. XD I just recently compleatly forgot to put 'self' before commands for a whole script I was making.  lol   roll  You may not make as many mistakes as I do.

I am so happy that all the Scratchers here help me out. I try to be helpful and NOT annoying, but sometimes I fail at that. I think I gave someone the wrong code for the URL block.  sad

Oh, and also, does anyone know, would I need code for a ('graphic effect %g' #r #report) type block? Please help. Oh, is there a problem with the #report part? I forget how to do the last part on reporters.

This is what I did
added:

Code:

('graphic effect %g' #r #report:)

and added the code

Code:

report: t1 
    filterPack ifNil: [filterPack _ FilterPack new].
    'blur' = t1 ifTrue: [^ filterPack blur].
    'brightness' = t1 ifTrue: [^ filterPack brightnessShift].
    'fisheye' = t1 ifTrue: [^ filterPack fisheye].
    'color' = t1 ifTrue: [^ filterPack hueShift].
    'mosaic' = t1 ifTrue: [^ filterPack mosaicCount].
    'pixelate' = t1 ifTrue: [^ filterPack pixelateCount].
    'pointillize' = t1 ifTrue: [^ filterPack pointillizeSize].
    'saturation' = t1 ifTrue: [^ filterPack saturationShift].
    'transparency' = t1 | ('ghost' = t1) ifTrue: [^ self transparency].
    'water ripple' = t1 ifTrue: [^ filterPack waterRippleRate].
    'whirl' = t1 ifTrue: [^ filterPack whirl].
    ^ 'Error!'

that should work

Offline

 

#1231 2011-06-15 07:00:34

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: ITopic: Welcome to your local block library!

TuragaTreeko wrote:

Haha, woops. I guess that wasn't as good as I hoped it would be. I'm not all that good at this. But I WILL keep trying! I'm determined.



did you notice I used you as the default value?  smile

Yes. I also saw what you wrote on your wiki page:

TuragaTreeko wrote:

I look up to scimonster, because he is a great programmer and just an awesome person.

Scriptmaster01 wrote:

TuragaTreeko wrote:

Pecola1 wrote:


Once you get better you wont make as many mistakes.  smile  But notice I said, "as many"  tongue  I make a lot of mistakes still. XD I just recently compleatly forgot to put 'self' before commands for a whole script I was making.  lol   roll  You may not make as many mistakes as I do.

I am so happy that all the Scratchers here help me out. I try to be helpful and NOT annoying, but sometimes I fail at that. I think I gave someone the wrong code for the URL block.  sad

Oh, and also, does anyone know, would I need code for a ('graphic effect %g' #r #report) type block? Please help. Oh, is there a problem with the #report part? I forget how to do the last part on reporters.

This is what I did
added:

Code:

('graphic effect %g' #r #report:)

and added the code

Code:

report: t1 
    filterPack ifNil: [filterPack _ FilterPack new].
    'blur' = t1 ifTrue: [^ filterPack blur].
    'brightness' = t1 ifTrue: [^ filterPack brightnessShift].
    'fisheye' = t1 ifTrue: [^ filterPack fisheye].
    'color' = t1 ifTrue: [^ filterPack hueShift].
    'mosaic' = t1 ifTrue: [^ filterPack mosaicCount].
    'pixelate' = t1 ifTrue: [^ filterPack pixelateCount].
    'pointillize' = t1 ifTrue: [^ filterPack pointillizeSize].
    'saturation' = t1 ifTrue: [^ filterPack saturationShift].
    'transparency' = t1 | ('ghost' = t1) ifTrue: [^ self transparency].
    'water ripple' = t1 ifTrue: [^ filterPack waterRippleRate].
    'whirl' = t1 ifTrue: [^ filterPack whirl].
    ^ 'Error!'

that should work

That should work, but I'd recommend having the name a little more descriptive, such as getEffect:

Offline

 

#1232 2011-06-15 08:43:18

TuragaTreeko
Scratcher
Registered: 2011-04-24
Posts: 100+

Re: ITopic: Welcome to your local block library!

scimonster wrote:

TuragaTreeko wrote:

Haha, woops. I guess that wasn't as good as I hoped it would be. I'm not all that good at this. But I WILL keep trying! I'm determined.



did you notice I used you as the default value?  smile

Yes. I also saw what you wrote on your wiki page:

TuragaTreeko wrote:

I look up to scimonster, because he is a great programmer and just an awesome person.

Scriptmaster01 wrote:

TuragaTreeko wrote:


I am so happy that all the Scratchers here help me out. I try to be helpful and NOT annoying, but sometimes I fail at that. I think I gave someone the wrong code for the URL block.  sad

Oh, and also, does anyone know, would I need code for a ('graphic effect %g' #r #report) type block? Please help. Oh, is there a problem with the #report part? I forget how to do the last part on reporters.

This is what I did
added:

Code:

('graphic effect %g' #r #report:)

and added the code

Code:

report: t1 
    filterPack ifNil: [filterPack _ FilterPack new].
    'blur' = t1 ifTrue: [^ filterPack blur].
    'brightness' = t1 ifTrue: [^ filterPack brightnessShift].
    'fisheye' = t1 ifTrue: [^ filterPack fisheye].
    'color' = t1 ifTrue: [^ filterPack hueShift].
    'mosaic' = t1 ifTrue: [^ filterPack mosaicCount].
    'pixelate' = t1 ifTrue: [^ filterPack pixelateCount].
    'pointillize' = t1 ifTrue: [^ filterPack pointillizeSize].
    'saturation' = t1 ifTrue: [^ filterPack saturationShift].
    'transparency' = t1 | ('ghost' = t1) ifTrue: [^ self transparency].
    'water ripple' = t1 ifTrue: [^ filterPack waterRippleRate].
    'whirl' = t1 ifTrue: [^ filterPack whirl].
    ^ 'Error!'

that should work

That should work, but I'd recommend having the name a little more descriptive, such as getEffect:

Thanks... everyone. (I can't thank only one person anymore, you're all awesome  smile   tongue  )


http://goo.gl/RDqKF

Offline

 

#1233 2011-06-15 11:16:01

TuragaTreeko
Scratcher
Registered: 2011-04-24
Posts: 100+

Re: ITopic: Welcome to your local block library!

Scriptmaster01 wrote:

TuragaTreeko wrote:

Pecola1 wrote:

Once you get better you wont make as many mistakes.  smile  But notice I said, "as many"  tongue  I make a lot of mistakes still. XD I just recently compleatly forgot to put 'self' before commands for a whole script I was making.  lol   roll  You may not make as many mistakes as I do.

I am so happy that all the Scratchers here help me out. I try to be helpful and NOT annoying, but sometimes I fail at that. I think I gave someone the wrong code for the URL block.  sad

Oh, and also, does anyone know, would I need code for a ('graphic effect %g' #r #report) type block? Please help. Oh, is there a problem with the #report part? I forget how to do the last part on reporters.

This is what I did
added:

Code:

('graphic effect %g' #r #report:)

and added the code

Code:

report: t1 
    filterPack ifNil: [filterPack _ FilterPack new].
    'blur' = t1 ifTrue: [^ filterPack blur].
    'brightness' = t1 ifTrue: [^ filterPack brightnessShift].
    'fisheye' = t1 ifTrue: [^ filterPack fisheye].
    'color' = t1 ifTrue: [^ filterPack hueShift].
    'mosaic' = t1 ifTrue: [^ filterPack mosaicCount].
    'pixelate' = t1 ifTrue: [^ filterPack pixelateCount].
    'pointillize' = t1 ifTrue: [^ filterPack pointillizeSize].
    'saturation' = t1 ifTrue: [^ filterPack saturationShift].
    'transparency' = t1 | ('ghost' = t1) ifTrue: [^ self transparency].
    'water ripple' = t1 ifTrue: [^ filterPack waterRippleRate].
    'whirl' = t1 ifTrue: [^ filterPack whirl].
    ^ 'Error!'

that should work

weird. It just reported everyting as 0.

EDIT: Is there anything special to make a Hat block?

Last edited by TuragaTreeko (2011-06-15 11:38:13)


http://goo.gl/RDqKF

Offline

 

#1234 2011-06-15 12:31:08

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Yes, a whole new section in Scratch-Blocks, plus lots of other editing.  tongue

Offline

 

#1235 2011-06-15 15:21:32

TuragaTreeko
Scratcher
Registered: 2011-04-24
Posts: 100+

Re: ITopic: Welcome to your local block library!

oh. what is the "whole lot of editing"?


http://goo.gl/RDqKF

Offline

 

#1236 2011-06-15 15:27:42

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: ITopic: Welcome to your local block library!

I don't know. I'm not that advanced. XD

Offline

 

#1237 2011-06-15 17:00:20

TuragaTreeko
Scratcher
Registered: 2011-04-24
Posts: 100+

Re: ITopic: Welcome to your local block library!

hmm. I'll see if I can figure that out. I'll reprt back.  wink

EDIT: ooh. try going to scratch blocks>event hat morph >other> start for event. after that... i dunno yet. i'll keep ya posted!  smile

EDIT: (has nothing to do with hat block) for the user page block i'm working on, i have a problem. it says that it expects an argument (most likely because of the t1 insert being a part of the url) help?

Last edited by TuragaTreeko (2011-06-15 17:40:19)


http://goo.gl/RDqKF

Offline

 

#1238 2011-06-15 18:41:34

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: ITopic: Welcome to your local block library!

TuragaTreeko wrote:

hmm. I'll see if I can figure that out. I'll reprt back.  wink

EDIT: ooh. try going to scratch blocks>event hat morph >other> start for event. after that... i dunno yet. i'll keep ya posted!  smile

EDIT: (has nothing to do with hat block) for the user page block i'm working on, i have a problem. it says that it expects an argument (most likely because of the t1 insert being a part of the url) help?

I need the code to fix it.  hmm  Can you show me the code?


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#1239 2011-06-15 18:46:03

jslomba
Scratcher
Registered: 2009-09-25
Posts: 1000+

Re: ITopic: Welcome to your local block library!

why won't anyone add my blocks?


the the the the the

Offline

 

#1240 2011-06-16 08:33:02

TuragaTreeko
Scratcher
Registered: 2011-04-24
Posts: 100+

Re: ITopic: Welcome to your local block library!

Pecola1 wrote:

TuragaTreeko wrote:

hmm. I'll see if I can figure that out. I'll reprt back.  wink

EDIT: ooh. try going to scratch blocks>event hat morph >other> start for event. after that... i dunno yet. i'll keep ya posted!  smile

EDIT: (has nothing to do with hat block) for the user page block i'm working on, i have a problem. it says that it expects an argument (most likely because of the t1 insert being a part of the url) help?

I need the code to fix it.  hmm  Can you show me the code?

blockspecs: ('open "my stuff" page for user %s on Scratch' #- #doOpenUser: 'scimonster')

ops: openUser: t1
     cursor wait showWhile [ScratchPlugin primOpen URL: http://scratch.mit.edu/users/ t1]

does that help?


http://goo.gl/RDqKF

Offline

 

#1241 2011-06-16 08:36:32

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: ITopic: Welcome to your local block library!

TuragaTreeko wrote:

Pecola1 wrote:

TuragaTreeko wrote:

hmm. I'll see if I can figure that out. I'll reprt back.  wink

EDIT: ooh. try going to scratch blocks>event hat morph >other> start for event. after that... i dunno yet. i'll keep ya posted!  smile

EDIT: (has nothing to do with hat block) for the user page block i'm working on, i have a problem. it says that it expects an argument (most likely because of the t1 insert being a part of the url) help?

I need the code to fix it.  hmm  Can you show me the code?

blockspecs: ('open "my stuff" page for user %s on Scratch' #- #doOpenUser: 'scimonster')

ops: openUser: t1
     cursor wait showWhile [ScratchPlugin primOpen URL: http://scratch.mit.edu/users/ t1]

does that help?

Code:

doOpenUser: t1
     cursor wait showWhile: [ScratchPlugin primOpen URL: 'http://scratch.mit.edu/users/' , t1]

Last edited by scimonster (2011-06-16 08:36:50)

Offline

 

#1242 2011-06-16 09:24:23

TuragaTreeko
Scratcher
Registered: 2011-04-24
Posts: 100+

Re: ITopic: Welcome to your local block library!

scimonster wrote:

TuragaTreeko wrote:

Pecola1 wrote:


I need the code to fix it.  hmm  Can you show me the code?

blockspecs: ('open "my stuff" page for user %s on Scratch' #- #doOpenUser: 'scimonster')

ops: openUser: t1
     cursor wait showWhile [ScratchPlugin primOpen URL: http://scratch.mit.edu/users/ t1]

does that help?

Code:

doOpenUser: t1
     cursor wait showWhile: [ScratchPlugin primOpen URL: 'http://scratch.mit.edu/users/' , t1]

oh... well, thanks. Can I request to add that block to the library now?


http://goo.gl/RDqKF

Offline

 

#1243 2011-06-16 15:00:43

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: ITopic: Welcome to your local block library!

TuragaTreeko wrote:

Pecola1 wrote:

TuragaTreeko wrote:

hmm. I'll see if I can figure that out. I'll reprt back.  wink

EDIT: ooh. try going to scratch blocks>event hat morph >other> start for event. after that... i dunno yet. i'll keep ya posted!  smile

EDIT: (has nothing to do with hat block) for the user page block i'm working on, i have a problem. it says that it expects an argument (most likely because of the t1 insert being a part of the url) help?

I need the code to fix it.  hmm  Can you show me the code?

blockspecs: ('open "my stuff" page for user %s on Scratch' #- #doOpenUser: 'scimonster')

ops: openUser: t1
     cursor wait showWhile [ScratchPlugin primOpen URL: http://scratch.mit.edu/users/ t1]

does that help?

Yes but sci beat me to it.  wink


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#1244 2011-06-16 15:15:25

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Shared by Hardmath123.
Blockspec:
('%b=%b' #b #a:equalsB:)
Code:
a: t1 equalsB: t2
t1 = t2 ifTrue [^true].
^false.
What it does:
Reports whether or not the two booleans are equal.

I will again ask sparks, may I take this block off seeing how you can already use it on the regular unedited scratch image with the < [] = [] > block?


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#1245 2011-06-16 15:21:57

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Pecola1 wrote:

Shared by Hardmath123.
Blockspec:
('%b=%b' #b #a:equalsB:)
Code:
a: t1 equalsB: t2
t1 = t2 ifTrue [^true].
^false.
What it does:
Reports whether or not the two booleans are equal.

I will again ask sparks, may I take this block off seeing how you can already use it on the regular unedited scratch image with the < [] = [] > block?

2 Librarians support. Me & you.

Oh, and that block does the long way. You can just do:
^ t1 = t2

Offline

 

#1246 2011-06-16 15:57:21

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: ITopic: Welcome to your local block library!

jslomba wrote:

why won't anyone add my blocks?

No-one's adding anybody's blocks, because us librarians either don't have the time or can't be bothered.  tongue


/* No comment */

Offline

 

#1247 2011-06-16 16:12:56

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: ITopic: Welcome to your local block library!

TS: You're a librarian  tongue

Offline

 

#1248 2011-06-17 12:39:55

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: ITopic: Welcome to your local block library!

ProgrammingFreak wrote:

TS: You're a librarian  tongue

I don't have the time on weekdays, on Saturdays I'm often doing things and on Sundays I really don't feel like doing it. I might update this evening though. (If no-one else has done it.)


/* No comment */

Offline

 

#1249 2011-06-17 16:08:21

YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 100+

Re: ITopic: Welcome to your local block library!

.                              http://welcometoyourlocalblocklibrary.weebly.com/uploads/7/1/1/0/7110842/292223741.gif

Scratch blocks added: [11]
get first () characters of []
get last () of []
get letters () to () of []
[] () times
Arrow key move with speed ()
Switch the up/down value of the pen
Number of costumes
Switch whether hidden or shown
Get the name of costume number ()
Am I on [costume] ? All by Hardmath123
beep By meew0

Other updates: [0]

Update carried out by block librarian: TheSuccessor
________________________________________________________________________________
^home
^updates archive

Last edited by YourLocalBlockLib (2011-06-17 16:09:18)


http://dl.dropbox.com/u/6273449/BlockLibraryTitle.png

Offline

 

#1250 2011-06-17 17:02:05

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: ITopic: Welcome to your local block library!

YourLocalBlockLib wrote:

.                              http://welcometoyourlocalblocklibrary.w … 223741.gif

Scratch blocks added: [11]
get first () characters of []
get last () of []
get letters () to () of []
[] () times
Arrow key move with speed ()
Switch the up/down value of the pen
Number of costumes
Switch whether hidden or shown
Get the name of costume number ()
Am I on [costume] ? All by Hardmath123
beep By meew0

Other updates: [0]

Update carried out by block librarian: TheSuccessor
________________________________________________________________________________
^home
^updates archive

SWEET! An ACTUAL update, not just 2 blocks.  tongue


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

Board footer