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

#876 2011-05-07 13:23:26

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

Re: ITopic: Welcome to your local block library!

sparks wrote:

The logo does not show an image... Cooltext does not host their images for long after your generation is complete so you need to host it somewhere else!

The logo was just for fun, I did it in literally 5 seconds.  tongue  I just wanted to see what would happen.


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

 

#877 2011-05-07 13:50:41

thebuilderdd
Scratcher
Registered: 2008-01-26
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Here is a suggestion: When it says "Code", tell us where to put it!

Offline

 

#878 2011-05-07 13:53:34

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

Re: ITopic: Welcome to your local block library!

thebuilderdd wrote:

Here is a suggestion: When it says "Code", tell us where to put it!

I'll put it in the glossary.  smile


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

 

#879 2011-05-07 13:55:15

thebuilderdd
Scratcher
Registered: 2008-01-26
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Pecola1 wrote:

thebuilderdd wrote:

Here is a suggestion: When it says "Code", tell us where to put it!

I'll put it in the glossary.  smile

Thanks!

Offline

 

#880 2011-05-07 14:21:12

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

Re: ITopic: Welcome to your local block library!

thebuilderdd wrote:

Pecola1 wrote:

thebuilderdd wrote:

Here is a suggestion: When it says "Code", tell us where to put it!

I'll put it in the glossary.  smile

Thanks!

Added!
~Pecola1


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

Offline

 

#881 2011-05-07 16:45:33

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

Re: ITopic: Welcome to your local block library!

I do think the path to the correct place for the code ought to  be included with each block... and thebuilderdd, there really isn't a need to bump any thread if it's on the first page, and certainly not the library, it gets posts every day.


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

Offline

 

#882 2011-05-07 17:08:34

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: ITopic: Welcome to your local block library!

New block:

Name: wait %n %s
Type: #-
Function Name: wait:type:
Script:

Code:

wait: t1 type: t2
| t3 |
t2 = 'seconds' ifTrue: [
       (second amount) timesRepeat [
              10 timesRepeat [
                      t3 _ 'something'
       ]
       ]
]
t2 = 'milliseconds' ifTrue: [
       t1 timesRepeat [
              t3 _ 'something'
       ]
]
t2 = 'microseconds' ifTrue: [
       t1 timesRepeat [
              t3 _ 'something'
       ]
]

Oh, and add more, etc. like minutes, hours, and etc.

Offline

 

#883 2011-05-07 20:37:26

hello12345678910
Scratcher
Registered: 2009-07-11
Posts: 100+

Re: ITopic: Welcome to your local block library!

New Block For Scratch:

Image: http://img268.imageshack.us/img268/4539/screenshot20110507at827.png
What it does: Reports the name of the closest sprite.
BlockSpec:

Code:

('closest sprite' #r #getClosestSprite)

Code:

Code:

getClosestSprite
    | minSprite minDistance |
    minDistance _ 1000.
    ScratchSpriteMorph
        allInstancesDo: [:sprite | sprite = self
                ifFalse: [(self distanceTo: sprite objName)
                        < minDistance
                        ifTrue: 
                            [minDistance _ self distanceTo: sprite objName.
                            minSprite _ sprite objName]]].
    ^ minSprite

Thanks!


http://tinyurl.com/8yt32o9 http://tinyurl.com/6tgwp5r || Fish = F+I+S+H = 6+9+19+8 = 42<<The answer to Life, the Universe and Everything

Offline

 

#884 2011-05-08 00:10:56

thebuilderdd
Scratcher
Registered: 2008-01-26
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Another suggestion for m first suggestion: Can you please make it more detailed, like where each code goes? Like Motion codes, etc.

Offline

 

#885 2011-05-08 03:49:09

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

Re: ITopic: Welcome to your local block library!

hello12345678910 wrote:

New Block For Scratch:

Image: http://img268.imageshack.us/img268/4539 … 7at827.png
What it does: Reports the name of the closest sprite.
BlockSpec:

Code:

('closest sprite' #r #getClosestSprite)

Code:

Code:

getClosestSprite
    | minSprite minDistance |
    minDistance _ 1000.
    ScratchSpriteMorph
        allInstancesDo: [:sprite | sprite = self
                ifFalse: [(self distanceTo: sprite objName)
                        < minDistance
                        ifTrue: 
                            [minDistance _ self distanceTo: sprite objName.
                            minSprite _ sprite objName]]].
    ^ minSprite

Thanks!

That looks like an amazing block! Very useful!


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

Offline

 

#886 2011-05-08 20:45:25

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: ITopic: Welcome to your local block library!

So I installed the block maker patch, but there's only one problem, HOW DO I GET .BLOCK FILES  tongue

I assume it was metioned somewhere in the thread, but I'm too busy to find it  tongue


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#887 2011-05-09 03:07:09

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: ITopic: Welcome to your local block library!

I get a phishing site here.


You can now reach me on Twitter @johnnydean1_

Offline

 

#888 2011-05-09 07:26:57

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: ITopic: Welcome to your local block library!

I have a BYOB other-category block. Add it to the library please.
http://img69.imageshack.us/img69/9083/captureituspooo.png
EDIT: Forgot to say, do NOT grey-border the block that goes into the reporter slot.

Last edited by rdococ (2011-05-09 07:54:38)

Offline

 

#889 2011-05-09 07:40:26

spud2451
Scratcher
Registered: 2010-05-01
Posts: 100+

Re: ITopic: Welcome to your local block library!

i have one it makes an object partly 3d (you have to use it multible times to make it 3d but i'm working on that right now but i'll give you what i have so far.

blockspec: ('make 3d' #- #make3d)

code: make3d
    | t1 |
    self referencePosition: self referencePosition + (0 @ 1).
    self step.
    (t1 _ self ownerThatIsA: ScratchStageMorph) ifNotNil: [t1 stampCostume: self]


http://www.xenopages.comze.com/upload/rippleos.gif

Offline

 

#890 2011-05-09 07:52:06

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: ITopic: Welcome to your local block library!

spud2451 wrote:

i have one it makes an object partly 3d (you have to use it multible times to make it 3d but i'm working on that right now but i'll give you what i have so far.

blockspec: ('make 3d' #- #make3d)

code: make3d
    | t1 |
    self referencePosition: self referencePosition + (0 @ 1).
    self step.
    (t1 _ self ownerThatIsA: ScratchStageMorph) ifNotNil: [t1 stampCostume: self]

Nice block! Here's a tip: Use the stamping code, and the incrementing X and Y values code.  smile

EDIT: Converted to BYOB.
Name: make 3d
Type: command
Code:

Code:

[repeat 10]
   [change x by 1]
   [change y by 1]
   [stamp]
[/repeat]

Last edited by rdococ (2011-05-09 07:57:03)

Offline

 

#891 2011-05-09 09:52:06

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

Re: ITopic: Welcome to your local block library!

scratcher7_13 wrote:

Important: I have discovered a working execute script block for Fission. It also reports reporters. Blockspec:

Code:

('report / execute script %B' #- #reportExecute:)

Code:

reportExecute: t1
        ^ t1

It only works to run a single block at a time.

What's the %B insert though?  hmm


Before we switch to dropbox, is it a program that you have to download and install?

Offline

 

#892 2011-05-09 10:28:12

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

Re: ITopic: Welcome to your local block library!

scimonster wrote:

scimonster wrote:

I think the old Library should be closed- I can copy code from there anyways, though I'd hate to do something like BYOB Operators or a Panther section with more than 5 blocks.

My tricks:
Right click on an image and click "copy image location" to find where it came from.
Right click on an link and click "copy link location" to find where it goes.
For colors, highlight it, right click and choose "view selection source" and copy the HTML color code.
smile  Well?

EDIT: big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile

Last edited by scimonster (2011-05-09 10:29:27)

Offline

 

#893 2011-05-09 10:40:48

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: ITopic: Welcome to your local block library!

I optimized my block.
Block made in: BYOB
Block name: %reporter1 named %string1 -bordered with changes %reporter2
Block type: Reporter
Script:

Code:

[report ( (reporter1) + (reporter2) ) ]

Very simple. Unlike the other one, this has 4 block while the other had approx 18 blocks!

EDIT: Fixed capitalizing at the word "unlike".
EDIT: Fixed number count.

Last edited by rdococ (2011-05-09 10:42:12)

Offline

 

#894 2011-05-09 11:13:05

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

Re: ITopic: Welcome to your local block library!

scimonster wrote:

My tricks:
Right click on an image and click "copy image location" to find where it came from.
Right click on an link and click "copy link location" to find where it goes.
For colors, highlight it, right click and choose "view selection source" and copy the HTML color code.
smile  Well?

EDIT: big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile

Did you know Internet Explorer does not have a "copy image location" option? It's mad! Firefox for ever! I actually have about five of the main browsers to test that my website looks ok on all of them, and IE is the only one I ever have problems with the site no  sad


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

Offline

 

#895 2011-05-09 11:15:27

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: ITopic: Welcome to your local block library!

sparks wrote:

scimonster wrote:

My tricks:
Right click on an image and click "copy image location" to find where it came from.
Right click on an link and click "copy link location" to find where it goes.
For colors, highlight it, right click and choose "view selection source" and copy the HTML color code.
smile  Well?

EDIT: big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile

Did you know Internet Explorer does not have a "copy image location" option? It's mad! Firefox for ever! I actually have about five of the main browsers to test that my website looks ok on all of them, and IE is the only one I ever have problems with the site no  sad

Lol, for me Firefox doesn't load EE, yet IE does! How weird? Also, Firefox mostly crashes alot.

Offline

 

#896 2011-05-09 11:25:31

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

Re: ITopic: Welcome to your local block library!

upgrade it.

@Scimonster
the wiki thread looks good, but the quotes from me need changing for meowmeow55 and pecola1. Here, you can quote me from this post instead:

pecola1
He's been with us for quite a while now and has shared 24% of all the Scratch blocks in the library making him top Scratch block contributor! He has the dedication and excitement for the library to make a great moderator. He is likely to promote the task of moving all the blocks to a different webhost than imageshack so that everyone can see them!

meowmeow55
The creator of the enormously helpful downloadable blocks addition to the BYOB section, he has put a huge amount of work into turning the script images into downloadable BYOB sprites and I'm sure his continued involvement in the Library will take us to new heights.

Last edited by sparks (2011-05-09 11:26:13)


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

Offline

 

#897 2011-05-09 11:28:55

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: ITopic: Welcome to your local block library!

rdococ wrote:

I optimized my block.
Block made in: BYOB
Block name: %reporter1 named %string1 -bordered with changes %reporter2
Block type: Reporter
Script:

Code:

[report ( (reporter1) + (reporter2) ) ]

Very simple. Unlike the other one, this has 4 block while the other had approx 18 blocks!

EDIT: Fixed capitalizing at the word "unlike".
EDIT: Fixed number count.

Offline

 

#898 2011-05-09 11:30:44

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

Re: ITopic: Welcome to your local block library!

sparks wrote:

scimonster wrote:

My tricks:
Right click on an image and click "copy image location" to find where it came from.
Right click on an link and click "copy link location" to find where it goes.
For colors, highlight it, right click and choose "view selection source" and copy the HTML color code.
smile  Well?

EDIT: big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile

Did you know Internet Explorer does not have a "copy image location" option? It's mad! Firefox for ever! I actually have about five of the main browsers to test that my website looks ok on all of them, and IE is the only one I ever have problems with the site no  sad

I know, Firefox FTW.  wink

@Sparks: You don't want the (Please start sharing your block images as actual-size rather than grossly enlarged  tongue ) in Pacola's part?  tongue

Offline

 

#899 2011-05-09 12:00:04

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

Re: ITopic: Welcome to your local block library!

scimonster wrote:

sparks wrote:

scimonster wrote:

My tricks:
Right click on an image and click "copy image location" to find where it came from.
Right click on an link and click "copy link location" to find where it goes.
For colors, highlight it, right click and choose "view selection source" and copy the HTML color code.
smile  Well?

EDIT: big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile

Did you know Internet Explorer does not have a "copy image location" option? It's mad! Firefox for ever! I actually have about five of the main browsers to test that my website looks ok on all of them, and IE is the only one I ever have problems with the site no  sad

I know, Firefox FTW.  wink

@Sparks: You don't want the (Please start sharing your block images as actual-size rather than grossly enlarged  tongue ) in Pacola's part?  tongue

No, it wasn't a reason why I chose him, it was a hint  tongue


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

Offline

 

#900 2011-05-09 12:01:09

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

Re: ITopic: Welcome to your local block library!

sparks wrote:

scimonster wrote:

sparks wrote:

Did you know Internet Explorer does not have a "copy image location" option? It's mad! Firefox for ever! I actually have about five of the main browsers to test that my website looks ok on all of them, and IE is the only one I ever have problems with the site no  sad

I know, Firefox FTW.  wink

@Sparks: You don't want the (Please start sharing your block images as actual-size rather than grossly enlarged  tongue ) in Pacola's part?  tongue

No, it wasn't a reason why I chose him, it was a hint  tongue

Oh...
You could have done it yourself and raised your edit count of only 32.  tongue

EDIT: 900th post on this thread.  yikes
I remember getting the 1111th on the old.  tongue
Oh yeah, I have to find it. I have a couple blocks there.  wink

Last edited by scimonster (2011-05-09 12:03:18)

Offline

 

Board footer