Pecola1 wrote:
scimonster wrote:
ProgrammingFreak wrote:
Scimonster made one, I think.Ahh... so you made that, great! Job.
Offline
SSBBM wrote:
Pecola1 wrote:
We are a bunch of home-schoolers. Me, ProgrammingFreak, scimonster, and SSBBM.
Oh yeah...
Offline
scimonster wrote:
Pecola1 wrote:
scimonster wrote:
Ahh... so you made that, great! Job.
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?
Offline
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.
Offline
scimonster wrote:
Pecola1 wrote:
scimonster 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.
Offline
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.
That's a better idea.
Offline
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
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.
Offline
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.
Cool. It can always be done too by <not <[] = []>>.
Offline
('Copy %s' #- #copy: #'some text')
copy: t1 ScratchTranslator unicodeClipboardPut: t1
Scimonster's block ported to Scratch.
Offline
Hardmath123 wrote:
Code:
('copy %s' #- #copy: 'some text')Code:
copy: t1 ScratchTranslator unicodeClipboardPut: t1Pecola1's block ported to Scratch.
I was going to do that anyways.
Offline
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!
|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)
Offline
Sparks are you learning HTML5 because of that 'canvas' reference?
Offline
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)
Offline
.
Panther blocks added: [1]
by Sparks
Other updates: [0]
Update carried out by block librarian: Sparks
________________________________________________________________________________
^home
^updates archive
Offline
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.
Offline
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!
Offline
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 )
Offline
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?
Offline
dropdown 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)
Offline
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.
Offline