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 So 113 pages!
Last edited by sparks (2011-06-14 17:35:46)
Offline
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 So 113 pages!
I was originally going to assume mine would go over, but decided I could edit it if it did.
Offline
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?Once you get better you wont make as many mistakes. But notice I said, "as many" 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. 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.
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.
Offline
here's a panther motion block:
Point at x: $Number$ y: $Number$
| 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
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?Once you get better you wont make as many mistakes. But notice I said, "as many" 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. 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.
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:
('graphic effect %g' #r #report:)
and added the 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
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?
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. But notice I said, "as many" 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. 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.
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
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?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.
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 )
Offline
Scriptmaster01 wrote:
TuragaTreeko wrote:
Pecola1 wrote:
Once you get better you wont make as many mistakes. But notice I said, "as many" 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. 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.
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)
Offline
Yes, a whole new section in Scratch-Blocks, plus lots of other editing.
Offline
I don't know. I'm not that advanced. XD
Offline
hmm. I'll see if I can figure that out. I'll reprt back.
EDIT: ooh. try going to scratch blocks>event hat morph >other> start for event. after that... i dunno yet. i'll keep ya posted!
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)
Offline
TuragaTreeko wrote:
hmm. I'll see if I can figure that out. I'll reprt back.
EDIT: ooh. try going to scratch blocks>event hat morph >other> start for event. after that... i dunno yet. i'll keep ya posted!
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. Can you show me the code?
Offline
Pecola1 wrote:
TuragaTreeko wrote:
hmm. I'll see if I can figure that out. I'll reprt back.
EDIT: ooh. try going to scratch blocks>event hat morph >other> start for event. after that... i dunno yet. i'll keep ya posted!
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. 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?
Offline
TuragaTreeko wrote:
Pecola1 wrote:
TuragaTreeko wrote:
hmm. I'll see if I can figure that out. I'll reprt back.
EDIT: ooh. try going to scratch blocks>event hat morph >other> start for event. after that... i dunno yet. i'll keep ya posted!
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. 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?
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
scimonster wrote:
TuragaTreeko wrote:
Pecola1 wrote:
I need the code to fix it. 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?
Offline
TuragaTreeko wrote:
Pecola1 wrote:
TuragaTreeko wrote:
hmm. I'll see if I can figure that out. I'll reprt back.
EDIT: ooh. try going to scratch blocks>event hat morph >other> start for event. after that... i dunno yet. i'll keep ya posted!
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. 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.
Offline
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?
Offline
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
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.
Offline
TS: You're a librarian
Offline
ProgrammingFreak wrote:
TS: You're a librarian
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.)
Offline
.
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)
Offline
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.
Offline