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

#2826 2012-05-05 13:53:29

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

Re: ITopic: Welcome to your local block library!

fancypants36 wrote:

I have one at
https://skydrive.live.com/redir.aspx?cid=04769921cfda37ee&resid=4769921CFDA37EE!195&parid=4769921CFDA37EE!120&authkey=!AEWjg3KDQU0k5sU

This link appears to go to a windows live page that I can't log into with my live account?


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

Offline

 

#2827 2012-05-05 14:13:34

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

sparks wrote:

fancypants36 wrote:

I have one at
https://skydrive.live.com/redir.aspx?cid=04769921cfda37ee&resid=4769921CFDA37EE!195&parid=4769921CFDA37EE!120&authkey=!AEWjg3KDQU0k5sU

This link appears to go to a windows live page that I can't log into with my live account?

It works for me.  It's a BYOB block, "wait (1) mins".  The programming is pretty self-explanatory.

Offline

 

#2828 2012-05-05 15:47:53

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: ITopic: Welcome to your local block library!

since when are you ever going to need a program to wait a minuite?


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#2829 2012-05-06 13:40:38

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

Re: ITopic: Welcome to your local block library!

joefarebrother wrote:

since when are you ever going to need a program to wait a minuite?

A level that takes 1 minute, for example.

Offline

 

#2830 2012-05-06 17:41:31

chanmanpartyman
Scratcher
Registered: 2011-05-30
Posts: 500+

Re: ITopic: Welcome to your local block library!

Scratch Blocks
[block here]
Sets the pen color to the color at the desired coordinate.

Blockspec:

Code:

('set pen color to x:%n y:%n' #- #colorX:y: 0 0)

colorAtX:y: (required to run colorX:y: )

Code:

colorAtX: t1 y: t2 
    | t3 t4 t5 t6 t7 |
    t3 _ self ownerThatIsA: ScratchFrameMorph.
    t3
        ifNil: 
            [(t4 _ self ownerThatIsA: OffscreenWorldMorph) ifNil: [^ self].
            t3 _ t4 frame].
    t5 _ t1.
    t5 isNaN ifTrue: [t5 _ 0].
    t5 > 240 ifTrue: [t5 _ 240].
    t5 < -240 ifTrue: [t5 _ -240].
    t6 _ t2.
    t6 isNaN ifTrue: [t6 _ 0].
    t6 < -180 ifTrue: [t6 _ -180].
    t6 > 180 ifTrue: [t6 _ 180].
    DoubleSize
        ifTrue: 
            [t5 _ t5 * 2.
            t6 _ t6 * 2].
    t7 _ t5 @ t6 negated.
    ^ Display colorAt: ScratchOrigin + t7

colorX:y:

Code:

colorX: t1 y: t2 
    | t3 |
    penColor _ self colorAtX: t1 y: t2.
    penHue _ penColor hue * 200.0 / 360.0.
    t3 _ penColor brightness.
    t3 = 1.0
        ifTrue: [penShade _ 50.0 + (50.0 * (1.0 - penColor saturation))]
        ifFalse: [penShade _ 50.0 * t2]

I already tested it and directly copy and pasted.

Last edited by chanmanpartyman (2012-05-06 17:42:59)

Offline

 

#2831 2012-05-07 23:14:42

Squawkers13
Scratcher
Registered: 2010-11-20
Posts: 500+

Re: ITopic: Welcome to your local block library!

will you finish the site?


http://pekkit.net/banners/pekkit.png

Offline

 

#2832 2012-05-08 04:50:03

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

Re: ITopic: Welcome to your local block library!

Squawkers13 wrote:

will you finish the site?

Yes.


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

Offline

 

#2833 2012-05-09 23:26:59

GeonoTRON2000
Scratcher
Registered: 2009-12-24
Posts: 1000+

Re: ITopic: Welcome to your local block library!

http://img707.imageshack.us/img707/8278/openurl.gif
Blockspec:

('go to URL %s' #- #link: 'http://scratch.mit.edu/')

Code:

link: t1 
    Cursor wait showWhile: [ScratchPlugin primOpenURL: t1]

http://i.imgur.com/BAEgGDL.png

Offline

 

#2834 2012-05-09 23:50:44

GeonoTRON2000
Scratcher
Registered: 2009-12-24
Posts: 1000+

Re: ITopic: Welcome to your local block library!

http://img515.imageshack.us/img515/38/trueblock.gif
Blockspec:

('true' #b #true)

Code:

true
    ^ true

http://img825.imageshack.us/img825/584/falseblock.gif
Blockspec:

('false' #b #false)

Code:

false
    ^ false

http://i.imgur.com/BAEgGDL.png

Offline

 

#2835 2012-05-10 04:02:26

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

Re: ITopic: Welcome to your local block library!

Sorry GeonoTRON2000, those blocks have already been shared.

Offline

 

#2836 2012-05-10 16:11:44

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: ITopic: Welcome to your local block library!

Just to ask, since about 50% (of what i've seen) of the images on the Block Libary, can't you remove the [GET ANTIDOTE MESSAGE HERE] message?


I'm back.
Maybe.

Offline

 

#2837 2012-05-10 16:48:21

Splodgey
Scratcher
Registered: 2011-04-26
Posts: 500+

Re: ITopic: Welcome to your local block library!

scimonster wrote:

Sorry GeonoTRON2000, those blocks have already been shared.

Does that mean you missed my submisions or did I miss your post "neglecting" them?

Offline

 

#2838 2012-05-10 18:06:18

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Splodgey wrote:

scimonster wrote:

Sorry GeonoTRON2000, those blocks have already been shared.

Does that mean you missed my submisions or did I miss your post "neglecting" them?

If nobody said anything about your blocks, then I would assume they're good.  Are you talking about a specific post or multiple ones in general?

Offline

 

#2839 2012-05-10 18:58:38

Squawkers13
Scratcher
Registered: 2010-11-20
Posts: 500+

Re: ITopic: Welcome to your local block library!

sparks wrote:

Squawkers13 wrote:

[sarcasm]will you finish the site?[/sarcasm]

Yes.

Notice the tags?


http://pekkit.net/banners/pekkit.png

Offline

 

#2840 2012-05-10 19:05:03

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

Re: ITopic: Welcome to your local block library!

Squawkers13 wrote:

sparks wrote:

Squawkers13 wrote:

[sarcasm]will you finish the site?[/sarcasm]

Yes.

Notice the tags?

So... you're not asking of I'll ever finish the site?


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

Offline

 

#2841 2012-05-11 01:51:02

Splodgey
Scratcher
Registered: 2011-04-26
Posts: 500+

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

Splodgey wrote:

scimonster wrote:

Sorry GeonoTRON2000, those blocks have already been shared.

Does that mean you missed my submisions or did I miss your post "neglecting" them?

If nobody said anything about your blocks, then I would assume they're good.  Are you talking about a specific post or multiple ones in general?

I was talking about this post;

Splodgey wrote:

I have 3 panther blocks...
http://i.imgur.com/VFLZ9.gif
Name:

Code:

$number$ out of $number$ as %

Type:

Code:

 r

Code:

Code:

t1/t2*100

http://i.imgur.com/Szjrv.gif
This block is already in Panther, but you can't drag reporter blocks in a "$Keys$ slot". Although this could be achieved with <(key pressed) = []>.
Name:

Code:

key $String$ pressed?

Type:

Code:

b

Code:

Code:

self keyPressed: t1

http://i.imgur.com/UC9Ib.gif
I discovered this when dragging the (key pressed) block into the above block  tongue
Name:

Code:

any button pressed?

Type:

Code:

b

Code:

Code:

self keyPressed: self keyPressed

Offline

 

#2842 2012-05-11 20:59:56

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Splodgey wrote:

Greenatic wrote:

Splodgey wrote:


Does that mean you missed my submisions or did I miss your post "neglecting" them?

If nobody said anything about your blocks, then I would assume they're good.  Are you talking about a specific post or multiple ones in general?

I was talking about this post;

Splodgey wrote:

I have 3 panther blocks...
http://i.imgur.com/VFLZ9.gif
Name:

Code:

$number$ out of $number$ as %

Type:

Code:

 r

Code:

Code:

t1/t2*100

http://i.imgur.com/Szjrv.gif
This block is already in Panther, but you can't drag reporter blocks in a "$Keys$ slot". Although this could be achieved with <(key pressed) = []>.
Name:

Code:

key $String$ pressed?

Type:

Code:

b

Code:

Code:

self keyPressed: t1

http://i.imgur.com/UC9Ib.gif
I discovered this when dragging the (key pressed) block into the above block  tongue
Name:

Code:

any button pressed?

Type:

Code:

b

Code:

Code:

self keyPressed: self keyPressed

That last one seems very useful--I'm not sure about the the others, though.

Offline

 

#2843 2012-05-12 04:19:43

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: ITopic: Welcome to your local block library!

Just to ask, can someone make me a "has internet access" boolean block? Because I need it so I can make an offline version of somthing i'm making.


I'm back.
Maybe.

Offline

 

#2844 2012-05-12 04:26:17

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: ITopic: Welcome to your local block library!

Woah. I just made a show and Hide cursor block. Now I think I can make a toggle Cursor visibility block.
EDIT: Ok.. That failed - but here's the show + hide cursor blocks:
show Cursor
Code:

Code:

    World activeHand showTemporaryCursor: nil

hide Cursor
Code:

Code:

    World activeHand showTemporaryCursor: ((Form extent: 1 @ 1 depth: 32)
            fillColor: Color transparent)

I found the blocks in the System Browser, in the Other Ops (Where the <$String$ as boolean> block is)

Last edited by DigiTechs (2012-05-12 04:31:03)


I'm back.
Maybe.

Offline

 

#2845 2012-05-12 08:12:24

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: ITopic: Welcome to your local block library!

wolvesstar97 wrote:

THE BLOCKS ARE GIANT!!!!! Um... they are HUGE.

Don't use IE. It's a rubbish browser. I had a similar problem when I used to use IE.


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#2846 2012-05-12 13:00:51

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

Re: ITopic: Welcome to your local block library!

DigiTechs wrote:

Woah. I just made a show and Hide cursor block. Now I think I can make a toggle Cursor visibility block.
EDIT: Ok.. That failed - but here's the show + hide cursor blocks:
show Cursor
Code:

Code:

    World activeHand showTemporaryCursor: nil

hide Cursor
Code:

Code:

    World activeHand showTemporaryCursor: ((Form extent: 1 @ 1 depth: 32)
            fillColor: Color transparent)

I found the blocks in the System Browser, in the Other Ops (Where the <$String$ as boolean> block is)

These were already submitted.  hmm  But you could work on that toggle cursor block.  smile  If you want help i could help you with it.  smile  (or I could do it for you.  tongue ) Btw: That is a great block idea.
(Oh, and yes the cursor blocks were submitted by me.  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

 

#2847 2012-05-12 14:50:55

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Pecola1 wrote:

DigiTechs wrote:

Woah. I just made a show and Hide cursor block. Now I think I can make a toggle Cursor visibility block.
EDIT: Ok.. That failed - but here's the show + hide cursor blocks:
show Cursor
Code:

Code:

    World activeHand showTemporaryCursor: nil

hide Cursor
Code:

Code:

    World activeHand showTemporaryCursor: ((Form extent: 1 @ 1 depth: 32)
            fillColor: Color transparent)

I found the blocks in the System Browser, in the Other Ops (Where the <$String$ as boolean> block is)

These were already submitted.  hmm  But you could work on that toggle cursor block.  smile  If you want help i could help you with it.  smile  (or I could do it for you.  tongue ) Btw: That is a great block idea.
(Oh, and yes the cursor blocks were submitted by me.  tongue )

This should work, because a normal cursor is a ColorForm, and a hidden mouse is a Form.  I haven't tested it, though.

('mouse is showing?' #b #MouseShows)

MouseShows
^ (World activeHand cursor isKindOf: ColorForm)

('toggle mouse' #- #ToggleMouse)

ToggleMouse
    (World activeHand cursor isKindOf: ColorForm)
        ifTrue:
            [World activeHand showTemporaryCursor: ((Form extent: 1 @ 1 depth: 32)
                    fillColor: Color transparent).
            ^ self].
    World activeHand showTemporaryCursor: nil

Offline

 

#2848 2012-05-12 15:40:47

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

Re: ITopic: Welcome to your local block library!

@Librarians: You may want to check out the website development thread, I've added page editing support for some pages!


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

Offline

 

#2849 2012-05-12 19:28:46

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

Re: ITopic: Welcome to your local block library!

sparks wrote:

@Librarians: You may want to check out the website development thread, I've added page editing support for some pages!

I'll be sure to! Last time I went on (the other day) everything said it was being worked on.


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

 

#2850 2012-05-12 19:40:08

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

Re: ITopic: Welcome to your local block library!

Pecola1 wrote:

sparks wrote:

@Librarians: You may want to check out the website development thread, I've added page editing support for some pages!

I'll be sure to! Last time I went on (the other day) everything said it was being worked on.

There's an "admin" link at the bottom of the pages in the footer  smile


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

Offline

 

Board footer