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

#701 2010-12-14 14:52:22

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

Re: Welcome to the OLD local block library!

Made a BYOB block:

download here or follow the steps below:
http://www.weebly.com/uploads/5/4/1/3/5413503/8827260.gif

http://www.weebly.com/uploads/5/4/1/3/5413503/7753466.gif
PS make sure the insert is a number insert AND a multiple insert.

Last edited by Pecola1 (2010-12-14 14:53:29)


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

 

#702 2010-12-14 15:03:09

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

Re: Welcome to the OLD local block library!

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.  wink
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!


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

 

#703 2010-12-14 17:57:54

StrykerV
New Scratcher
Registered: 2010-06-15
Posts: 51

Re: Welcome to the OLD local block library!

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: t2

sorry if someone already made this block.


99.9999% Crazy, 0.0001% Hamburgeh Makeh  smile

Offline

 

#704 2010-12-14 18:00:33

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

Re: Welcome to the OLD local block library!

Pecola1 wrote:

Hey can anyone tell me how to create a forum?


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

 

#705 2010-12-14 18:04:33

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

Re: Welcome to the OLD local block library!

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: t2

sorry 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.  hmm  but he might not be too busy  smile  ! 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  tongue  .

Last edited by Pecola1 (2010-12-14 18:06:30)


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

 

#706 2010-12-14 19:01:06

StrykerV
New Scratcher
Registered: 2010-06-15
Posts: 51

Re: Welcome to the OLD local block library!

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: t2

sorry 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.  hmm  but he might not be too busy  smile  ! 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  tongue  .

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  smile


99.9999% Crazy, 0.0001% Hamburgeh Makeh  smile

Offline

 

#707 2010-12-14 19:08:21

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

Re: Welcome to the OLD local block library!

http://www.weebly.com/uploads/5/4/1/3/5413503/8838788.gif

Download the block here

Here are the instructions:

http://www.weebly.com/uploads/5/4/1/3/5413503/5132402.gif

Report: ( (a) as string)

Last edited by Pecola1 (2010-12-14 19:51:11)


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

 

#708 2010-12-14 19:37:46

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

Re: Welcome to the OLD local block library!

Download it here

Block:
http://www.weebly.com/uploads/5/4/1/3/5413503/9990013.gif

Instructions:
http://www.weebly.com/uploads/5/4/1/3/5413503/7518244.gif
Report: (result)

Last edited by Pecola1 (2010-12-14 19:49:11)


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

 

#709 2010-12-14 19:47:39

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

Re: Welcome to the OLD local block library!

block:
http://www.weebly.com/uploads/5/4/1/3/5413503/4808178.gif

Download it here

Instructions:
http://www.weebly.com/uploads/5/4/1/3/5413503/1072397.gif
Report: (result)

Last edited by Pecola1 (2010-12-14 19:49:43)


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

 

#710 2010-12-14 20:05:04

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

Re: Welcome to the OLD local block library!

Block:
http://www.weebly.com/uploads/5/4/1/3/5413503/8331059.gif?388

Download here

Instructions:
http://www.weebly.com/uploads/5/4/1/3/5413503/4322647.gif?273

Remember to "make internal variable visible to caller" for the list variable!

Last edited by Pecola1 (2010-12-15 13:01:25)


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

 

#711 2010-12-14 20:14:46

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

Re: Welcome to the OLD local block library!

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: t2

sorry 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

Code:

('point at x:%n y:%n' #- #pointToX:y:)

and not need a code!

Last edited by Pecola1 (2010-12-14 20:15:56)


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

 

#712 2010-12-14 21:10:07

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

Re: Welcome to the OLD local block library!

Block:
http://www.weebly.com/uploads/5/4/1/3/5413503/8776481.gif?281
(is that big enough?)

Block spec:
('move %v to x: %n y: %n' #- #moveVar:toX:y: '' 0 0)

Code:

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)


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

 

#713 2010-12-14 22:27:08

ESN
New Scratcher
Registered: 2010-12-03
Posts: 100+

Re: Welcome to the OLD local block library!

I made an 'open browser' block.

I will post its code in the morning.  smile


http://is.gd/jZ5chhttp://is.gd/jZhXDhttp://is.gd/jZhU7

Offline

 

#714 2010-12-15 05:50:22

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

Re: Welcome to the OLD local block library!

yikes  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)


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

Offline

 

#715 2010-12-15 12:19:04

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

Re: Welcome to the OLD local block library!

sparks wrote:

yikes  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  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)


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

 

#716 2010-12-15 12:20:08

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

Re: Welcome to the OLD local block library!

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

<turn cw( around
<wait( ]and wait c>
<point towards( sparks [/blocks]
Just one thing... how do I start?!?!?!?  lol  I have never made patches.  roll  How do you make them?   neutral

Last edited by Pecola1 (2010-12-15 12:27:47)


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

 

#717 2010-12-15 12:34:14

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

Re: Welcome to the OLD local block library!

ESN wrote:

I made an 'open browser' block.

I will post its code in the morning.  smile

Ooh DANGEROUS! I tried that once but it froze up scratch.


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

 

#718 2010-12-15 12:49:06

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

Re: Welcome to the OLD local block library!

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!


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

 

#719 2010-12-15 12:56:42

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

Re: Welcome to the OLD local block library!

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)


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

Offline

 

#720 2010-12-15 13:09:05

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

Re: Welcome to the OLD local block library!

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.  hmm 
So all those photos you put on as  a block photo turn into http://www.weebly.com/uploads/5/4/1/3/5413503/8226015.png

and when I try to go to imageshak I get:
http://www.weebly.com/uploads/5/4/1/3/5413503/1556435.png

Last edited by Pecola1 (2010-12-15 13:12:01)


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

 

#721 2010-12-15 13:11:03

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

Re: Welcome to the OLD local block library!

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)


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

Offline

 

#722 2010-12-15 13:14:00

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

Re: Welcome to the OLD local block library!

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.


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

 

#723 2010-12-15 13:15:07

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

Re: Welcome to the OLD local block library!

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

The really hard part is the time limit

http://www.weebly.com/uploads/5/4/1/3/5413503/527476.png
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)


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

 

#724 2010-12-15 13:20:18

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

Re: Welcome to the OLD local block library!

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  tongue


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

Offline

 

#725 2010-12-15 13:22:05

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

Re: Welcome to the OLD local block library!

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


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

Offline

 

Board footer