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

#1151 2011-06-06 08:34:31

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

Re: ITopic: Welcome to your local block library!

Pecola1 wrote:

scimonster wrote:

ProgrammingFreak wrote:


Scimonster made one, I think.

Ahh... so you made that, great! Job.

Here's where I learned from.

Offline

 

#1152 2011-06-06 09:02:36

SSBBM
Scratcher
Registered: 2009-10-09
Posts: 100+

Re: ITopic: Welcome to your local block library!

Pecola1 wrote:

We are a bunch of home-schoolers. Me, ProgrammingFreak, scimonster, and SSBBMsmile


http://goo.gl/zVfAp http://goo.gl/laci8

Offline

 

#1153 2011-06-06 10:37:53

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

Re: ITopic: Welcome to your local block library!

SSBBM wrote:

Pecola1 wrote:

We are a bunch of home-schoolers. Me, ProgrammingFreak, scimonster, and SSBBMsmile

Oh yeah...


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

 

#1154 2011-06-06 10:39:13

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

Re: ITopic: Welcome to your local block library!

scimonster wrote:

Pecola1 wrote:

scimonster wrote:


Ahh... so you made that, great! Job.

Here's where I learned from.

I already knew how, thats how I made it. But I didn't make it, nice tutorial, @Librarians should we link to that tutorial somewhere?


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

 

#1155 2011-06-06 10:41:12

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

Re: ITopic: Welcome to your local block library!

Pecola1 wrote:

scimonster wrote:

Pecola1 wrote:


Ahh... so you made that, great! Job.

Here's where I learned from.

I already knew how, thats how I made it. But I didn't make it, nice tutorial.
@Librarians: Should we link to that tutorial somewhere?

Yeah, in the first place how to make a cap block.

Offline

 

#1156 2011-06-06 10:43:44

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

Re: ITopic: Welcome to your local block library!

scimonster wrote:

Pecola1 wrote:

I already knew how, thats how I made it. But I didn't make it, nice tutorial.
@Librarians: Should we link to that tutorial somewhere?

Yeah, in the first place how to make a cap block.

No, I think it is better in the glossary or something, in the first place it would be hard to find, we could in the first cap block say to look in the glossary for what a cap block is an how to get it.  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

 

#1157 2011-06-06 10:45:06

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

Re: ITopic: Welcome to your local block library!

Pecola1 wrote:

scimonster wrote:

Pecola1 wrote:


I already knew how, thats how I made it. But I didn't make it, nice tutorial.
@Librarians: Should we link to that tutorial somewhere?

Yeah, in the first place how to make a cap block.

No, I think it is better in the glossary or something, in the first place it would be hard to find, we could in the first cap block say to look in the glossary for what a cap block is an how to get it.  smile

That's a better idea.  big_smile

Offline

 

#1158 2011-06-06 10:49:14

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

Re: ITopic: Welcome to your local block library!

New Panther block:
Pecola1
copy $String$ to clipboard
-
#E6A822
ScratchTranslator unicodeClipboardPut: t1
Notes:
Adds the string to your clipboard!

Last edited by scimonster (2011-06-06 10:49:36)

Offline

 

#1159 2011-06-10 10:18:20

mr_fish_fish
Scratcher
Registered: 2009-11-12
Posts: 52

Re: ITopic: Welcome to your local block library!

I have an idea for a new scratch block:


Blockspec:

('%n ≠ %n' #b #notequal:to:)
NOTE: The ≠ symbol might not always be available. "not =" also works.

Code:

notequal: t1 to: t2
t1 = t2 ifTrue: [^ false].
^ true
This block will report the truth value of two values are not equal.

Sorry, I do not have a picture of what the block would look like.


/\/\ ® _ |= 1 § |-| _ |= 1 § |-|

Offline

 

#1160 2011-06-10 10:22:26

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

Re: ITopic: Welcome to your local block library!

mr_fish_fish wrote:

I have an idea for a new scratch block:


Blockspec:

('%n ≠ %n' #b #notequal:to:)
NOTE: The ≠ symbol might not always be available. "not =" also works.

Code:

notequal: t1 to: t2
t1 = t2 ifTrue: [^ false].
^ true
This block will report the truth value of two values are not equal.

http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=$String$+not+=+$String$&type=boolean&color=operators

Cool. It can always be done too by <not <[] = []>>.

Offline

 

#1161 2011-06-10 10:25:03

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Code:

('Copy %s' #- #copy: #'some text')

Code:

copy: t1 
    ScratchTranslator unicodeClipboardPut: t1

Scimonster's block ported to Scratch.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#1162 2011-06-10 10:30:26

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

Re: ITopic: Welcome to your local block library!

Hardmath123 wrote:

Code:

('copy %s' #- #copy: 'some text')

Code:

copy: t1 
    ScratchTranslator unicodeClipboardPut: t1

Pecola1's block ported to Scratch.

I was going to do that anyways.  big_smile

Offline

 

#1163 2011-06-10 11:44:28

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

Re: ITopic: Welcome to your local block library!

I have a Panther block :D I don't make blocks often but I really was getting fed up with dragging out all the blocks to make <<(mouse x) < ( )> and <(mouse x > ( )> and <mouse y < ( )> and mouse y > ( )>>. I use this one with the mouse position reporters to make check if the mouse is within a square space on the stage. Great for stamping projects where you can stamp or draw on parts of the stage but not on the toolbars to the side of the "canvas". Will add it to the library in a second!

http://welcometoyourlocalblocklibrary.weebly.com/uploads/7/1/1/0/7110842/3445196.gif?346

Code:

|result|
result_true.

t1 <= t3
ifFalse:
[result_false.].

t1 >= t4
ifFalse:
[result_false.].

t2 <= t5
ifFalse:
[result_false.].

t2 >= t6
ifFalse:
[result_false.].
^result

Last edited by sparks (2011-06-10 11:58:15)


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

Offline

 

#1164 2011-06-10 11:53:56

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

Re: ITopic: Welcome to your local block library!

Sparks are you learning HTML5 because of that 'canvas' reference?


You can now reach me on Twitter @johnnydean1_

Offline

 

#1165 2011-06-10 12:00:07

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

Re: ITopic: Welcome to your local block library!

No. funnily enough canvas is a material used to paint on. In paint projects the area you can draw on is usually called the canvas.

Oddly, I forgot to declare the variable "result" in the above code and yet the block worked perfectly... is result a pre-existing variable in smalltalk? (I've added it now to be on the safe side)


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

Offline

 

#1166 2011-06-10 12:13:58

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

Re: ITopic: Welcome to your local block library!

.                              http://welcometoyourlocalblocklibrary.weebly.com/uploads/7/1/1/0/7110842/292223741.gif

Panther blocks added: [1]
http://welcometoyourlocalblocklibrary.weebly.com/uploads/7/1/1/0/7110842/3445196.gif?346 by Sparks

Other updates: [0]

Update carried out by block librarian: Sparks
________________________________________________________________________________
^home
^updates archive


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

Offline

 

#1167 2011-06-10 12:31:43

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

Re: ITopic: Welcome to your local block library!

sparks wrote:

No. funnily enough canvas is a material used to paint on. In paint projects the area you can draw on is usually called the canvas.

Oddly, I forgot to declare the variable "result" in the above code and yet the block worked perfectly... is result a pre-existing variable in smalltalk? (I've added it now to be on the safe side)

I knew that, it just seemed like a HTML5 reference.


You can now reach me on Twitter @johnnydean1_

Offline

 

#1168 2011-06-10 12:38:47

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

Re: ITopic: Welcome to your local block library!

What is a canvas in HTML5? I've never heard of it. It sounds like a space in a webpage where media can be drawn or rendered?


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

Offline

 

#1169 2011-06-10 13:39:02

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

Re: ITopic: Welcome to your local block library!

sparks wrote:

What is a canvas in HTML5? I've never heard of it. It sounds like a space in a webpage where media can be drawn or rendered?

Got it in one. Its a paint canvas where images, videos, or colours can be rendered. E.G HERE DOES NOT WORK IN IE!


You can now reach me on Twitter @johnnydean1_

Offline

 

#1170 2011-06-10 15:20:51

jslomba
Scratcher
Registered: 2009-09-25
Posts: 1000+

Re: ITopic: Welcome to your local block library!

is anyone going to add my scratch blocks? please?


the the the the the

Offline

 

#1171 2011-06-10 17:01:30

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

Re: ITopic: Welcome to your local block library!

johnnydean1 wrote:

sparks wrote:

What is a canvas in HTML5? I've never heard of it. It sounds like a space in a webpage where media can be drawn or rendered?

Got it in one. Its a paint canvas where images, videos, or colours can be rendered. E.G HERE DOES NOT WORK IN IE!

That is incredible! I must learn about this at some point! (I completely guessed what a canvas in HTML5 does  tongue  )


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

Offline

 

#1172 2011-06-10 21:03:15

TuragaTreeko
Scratcher
Registered: 2011-04-24
Posts: 100+

Re: ITopic: Welcome to your local block library!

http://www.weebly.com/uploads/7/1/1/0/7110842/6396941.gif Shared by Pecola1

Blockspec:

    ('password for %s is %s ?' #b #username:password:)

Code:

    username: t1 password: t2
        (HTTPSocket httpGet: 'contentshttp://scratch.mit.edu/api/authenticateuser?username=' , t1 , '&password=' , t2) contents = 'false' ifTrue: [^false].
    ^true

What this block does:
Reports whether the password for the username that is inserted is the right password. Useful for making a project which requires you have a Scratch account.

When I use this block it makes everything true. I used command c and v for the blockspecs and code. what should I do?


http://goo.gl/RDqKF

Offline

 

#1173 2011-06-10 21:10:14

jslomba
Scratcher
Registered: 2009-09-25
Posts: 1000+

Re: ITopic: Welcome to your local block library!

http://www.weebly.com/uploads/4/0/7/6/4076678/1875422.gifdropdown list version:

Scratch blocks> commandBlockMorph> all> uncoloredArgMorphFor: add a strip: wrote:

$Q = t2 ifTrue: [^ ChoiceOrExpressionArgMorph new getOptionsSelector: #dateTime;
choice: 'date'].

Scratch objects> scriptableScratchMorph> otherOps: wrote:

dateTime
    ^ #('date' 'short date' 'time' 'seconds' 'minutes' 'hours' 'day')

blockspec: wrote:

('get %Q' #r #getTime: 'date')

Last edited by jslomba (2011-06-11 08:05:05)


the the the the the

Offline

 

#1174 2011-06-10 21:15:21

TuragaTreeko
Scratcher
Registered: 2011-04-24
Posts: 100+

Re: ITopic: Welcome to your local block library!

Hardmath123 wrote:

<password for [] is []> isn't working, because the url needs to be http://..., not contentshttp://...

hmm, i've been trying to get the password block to work, and when i added that it just started saying error to everything.


http://goo.gl/RDqKF

Offline

 

#1175 2011-06-10 21:16:03

jslomba
Scratcher
Registered: 2009-09-25
Posts: 1000+

Re: ITopic: Welcome to your local block library!

jslomba wrote:

is anyone going to add my scratch blocks? please?

please? I shard like 5 scratch blocks and they're not added. or made with scramble.


the the the the the

Offline

 

Board footer