Made a BYOB block:
download here or follow the steps below:
PS make sure the insert is a number insert AND a multiple insert.
Last edited by Pecola1 (2010-12-14 14:53:29)
Offline
A NOTE TO ALL:
Thank you for making all of these useful blocks.
A special thanks to sparks for making this block library even when he is busy.
Think of how much work it is for sparks to test our blocks then fix them up then find where they should go in the blocks library then take a picture of the block then put the picture online at imageshak.com then copy and past the link in the library and than type in what it does (or figure that out somehow) then put what it does and the name of the creator in the library then put the pictures of the library shelves in. And who gets the credit for the blocks? We do! He is a wonderful Scratcher!
Offline
Point at X: Y: block
Blockspec:
('point at x:%n y:%n' #- #pointatX:y:)
Code:
pointatX: t1 y: t2 self pointToX: t1 y: t2
sorry if someone already made this block.
Offline
Pecola1 wrote:
Hey can anyone tell me how to create a forum?
Offline
StrykerV wrote:
Point at X: Y: block
Blockspec:Code:
('point at x:%n y:%n' #- #pointatX:y:)Code:
Code:
pointatX: t1 y: t2 self pointToX: t1 y: t2sorry if someone already made this block.
I think someone did but it was on BYOB and it used Trig. I cannot believe no one thought of that! Awesome block! Unfortunately, sparks just finished putting all the new blocks on. but he might not be too busy ! Are you new to the block library? I see you are a 'new scratcher' but how long have you been on scratch? It said that for me after two months .
Last edited by Pecola1 (2010-12-14 18:06:30)
Offline
Pecola1 wrote:
StrykerV wrote:
Point at X: Y: block
Blockspec:Code:
('point at x:%n y:%n' #- #pointatX:y:)Code:
Code:
pointatX: t1 y: t2 self pointToX: t1 y: t2sorry if someone already made this block.
I think someone did but it was on BYOB and it used Trig. I cannot believe no one thought of that! Awesome block! Unfortunately, sparks just finished putting all the new blocks on. but he might not be too busy ! Are you new to the block library? I see you are a 'new scratcher' but how long have you been on scratch? It said that for me after two months .
Ehh I've been on Scratch ever since the beginning of summer. I found the block library a couple weeks ago but just last week I started to understand the codes and this is my first time I posted. Thanks
Offline
Download the block here
Here are the instructions:
Report: ( (a) as string)
Last edited by Pecola1 (2010-12-14 19:51:11)
Offline
Download it here
Block:
Instructions:
Report: (result)
Last edited by Pecola1 (2010-12-14 19:49:11)
Offline
block:
Download it here
Instructions:
Report: (result)
Last edited by Pecola1 (2010-12-14 19:49:43)
Offline
Block:
Download here
Instructions:
Remember to "make internal variable visible to caller" for the list variable!
Last edited by Pecola1 (2010-12-15 13:01:25)
Offline
StrykerV wrote:
Point at X: Y: block
Blockspec:Code:
('point at x:%n y:%n' #- #pointatX:y:)Code:
Code:
pointatX: t1 y: t2 self pointToX: t1 y: t2sorry if someone already made this block.
No one made that block. By the way did you make a place named PointToX:y: ? If not you could have just put
('point at x:%n y:%n' #- #pointToX:y:)
and not need a code!
Last edited by Pecola1 (2010-12-14 20:15:56)
Offline
Block spec:
('move %v to x: %n y: %n' #- #moveVar:toX:y: '' 0 0)
positionVar: t1 atX: t2 y: t3 | t4 t5 t6 t7 t8 t9 | (self varNames includes: t1) ifFalse: [^ self]. t4 _ self ownerThatIsA: ScratchFrameMorph. t4 ifNil: [(t5 _ self ownerThatIsA: OffscreenWorldMorph) ifNil: [^ self]. t4 _ t5 frame]. t6 _ VariableBlockMorph new commandSpec: t1; receiver: self blockReceiver. (t5 _ t4 watcherForBlock: t6) ifNil: [^ self]. t7 _ t2. t7 isNaN ifTrue: [t7 _ 0]. t7 > 240 ifTrue: [t7 _ 240]. t7 < (-240 - t5 extent x) ifTrue: [t7 _ -240 - t5 extent x]. t8 _ t3. t8 isNaN ifTrue: [t8 _ 0]. t8 < -180 ifTrue: [t8 _ -180]. t8 > (180 + t5 extent y) ifTrue: [t8 _ 180 + t5 extent y]. t9 _ t7 @ t8 negated. t5 position: ScratchOrigin + t9
Code 2:
moveVar: t1 toX: t2 y: t3
| t4 |
self
positionVar: t1
atX: t2
y: t3.
t4 _ self ownerThatIsA: ScratchStageMorph.
t4 ~= self
ifTrue: [t4
positionVar: t1
atX: t2
y: t3]
Last edited by Pecola1 (2010-12-15 12:55:25)
Offline
Wow! That's a lot more blocks! I can see this library is going to fill up quickly!
Pecola1, I love the new blocks, but you're sharing them as smaller-than-full resolution so they look too small in the post. (you can fix this by going into weebly a just resizing the images you're hosting. Try not to make them smaller than actual size or I can't use them!
And thanks for providing downloads to all your blocks!
___________________________________________________________________________________
As the library gets bigger, I need to finds ways of saving space. I'm already working on a way to get Panther blocks to have a "download number" you can enter into a downloadable block. When the block gets the download number for another block, it adds the block to your Panther project. This means I don't need to show the whole code for those blocks.
If someone knows how to, or would be willing to make working patches for the scratch blocks, that would be brilliant as then those could be downloadable too!
___________________________________________________________________________________
Welcome to the library, StrykerV!
Last edited by sparks (2010-12-15 05:53:55)
Offline
sparks wrote:
Wow! That's a lot more blocks! I can see this library is going to fill up quickly!
Pecola1, I love the new blocks, but you're sharing them as smaller-than-full resolution so they look too small in the post. (you can fix this by going into weebly a just resizing the images you're hosting. Try not to make them smaller than actual size or I can't use them!
And thanks for providing downloads to all your blocks!
How do I change the size of the pictures? I can change the boarder but it wont let me change the size.
=EDIT=
Now I see what the red box is! LOL I was wondering about that! I know how to resize the images now. LOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOL
Last edited by Pecola1 (2010-12-15 12:53:28)
Offline
sparks wrote:
If someone knows how to, or would be willing to make working patches for the scratch blocks, that would be brilliant as then those could be downloadable too!
I will start trying.
<turn cw( around
<wait( ]and wait c>
<point towards( sparks [/blocks]
Just one thing... how do I start?!?!?!? I have never made patches. How do you make them?
Last edited by Pecola1 (2010-12-15 12:27:47)
Offline
ESN wrote:
I made an 'open browser' block.
I will post its code in the morning.
Ooh DANGEROUS! I tried that once but it froze up scratch.
Offline
BLOCK REQUEST
(I know it's weird I am asking mostly that you help)
Make a (Instrument) reporter. The problem: There is no way scratch really can tell (correct me if i'm wrong) what instrument to play except for set instrument to otherwise it has when you play a note well... I am not sure how to decode it into human language but it pretty much says: Play instrument
And i cannot see where there is a place where it can tell the instrument!
Offline
You can resize an image by clicking on a little icon in the corner which lets you drag it about to change the size. Really, just get imageshack, pecola, weebly may be great for a lot of things, but it's not fast or efficient when you want to host an image!
I've nearly finished the block that will let you download a block from the library. I'm having one problem though. I want to be able to set the block to the correct catagory colour when it's made, but I have to store the colour online in hexadecimal format (#123456) but the block wants it as a pure colour. the variable "t4" in my block is therefore set to the block's hexadecimal value, but I can't convert it to a pure colour. I tried using "t4 asColor" with no luck.
EDIT: I'm not even sure if asColor is a command... I was copying the idea off of "asString"
EDIT2: never mind, fixed it! It works! It was
t4_self stringAsColor: t4.
in case anyone wondered!
------------------------------------------------------------------------------------------------------
One more thing, my block currently works as long as the code is one line long. I use:
t3_self readLine: 5 FromUrl: link.
but how can I get it to read lines 5 to number of lines in file "link"? That way I can have an unspecified length of code lines, and it'll set t5 to lines 5 (where the code starts) to the last line of the file (where the code ends.)
Last edited by sparks (2010-12-15 13:09:35)
Offline
sparks wrote:
Really, just get imageshack, pecola, weebly may be great for a lot of things, but it's not fast or efficient when you want to host an image!
One problem with that... I have web blocks (it blocks websites not like scratch blocks)
They wont let me see a picture from there or go to the website.
So all those photos you put on as a block photo turn into
and when I try to go to imageshak I get:
Last edited by Pecola1 (2010-12-15 13:12:01)
Offline
you have web blocks... on your home computer?!
Can you help me with this:
my block currently works as long as the code is one line long. I use:
t3_self readLine: 5 FromUrl: link.
but how can I get it to read lines 5 to number of lines in file "link"? That way I can have an unspecified length of code lines, and it'll set t3 to lines 5 (where the code starts) to the last line of the file (where the code ends.)
Last edited by sparks (2010-12-15 13:13:54)
Offline
sparks wrote:
you have web blocks... on your home computer?!
Can you help me with this:
my block currently works as long as the code is one line long. I use:
t3_self readLine: 5 FromUrl: link.
but how can I get it to read lines 5 to number of lines in file "link"? That way I can have an unspecified length of code lines, and it'll set t5 to lines 5 (where the code starts) to the last line of the file (where the code ends.)
I don't know much about file blocks. Sorry.
Offline
sparks wrote:
you have web blocks... on your home computer?!
Yeah... I know it stinks. It does help thought. When doing science reports It will block inappropriate things.
The really hard part is the time limit
only 25 mins left! I do get 2 hours each day + however many times my mom gives me more time. (usually only once)
Last edited by Pecola1 (2010-12-15 13:21:28)
Offline
I don't understand how doing a science report would cause innapropriate images to appear... you can just turn strict filtering on on your google search, and as this library proves, it blocks important images too!
Besides, I'm 18, We probably have different ideas of what "appropriate" is
Offline
you have filtering and a time limit on your own computer?! Why on earth would you put up with that?!
stupid 60 second rule means I'll never be able to add more than one block to the library in 60 seconds..... lalalalalalalalala waiting for the time to expire! ....
Offline