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

#251 2010-09-29 08:10:33

zorket
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: Welcome to the OLD local block library!

That's a great one! You can do a drop down for the (get (time) block too!


Marzipan11 must learn to not spoil

Offline

 

#252 2010-09-29 11:36:42

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

Re: Welcome to the OLD local block library!

that looks... amazing! I could convert it to Panther except you would need seperate blocks... CYOB does not take dropdowns. Still, that's amazing!


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

Offline

 

#253 2010-09-29 15:44:42

zorket
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: Welcome to the OLD local block library!

sparks wrote:

that looks... amazing! I could convert it to Panther except you would need seperate blocks... CYOB does not take dropdowns. Still, that's amazing!

Hey that's a cool idea why not add it


Marzipan11 must learn to not spoil

Offline

 

#254 2010-09-29 17:09:24

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

Re: Welcome to the OLD local block library!

tomorrow... I'm doing german homework  sad


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

Offline

 

#255 2010-09-30 17:00:44

zorket
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: Welcome to the OLD local block library!

sparks wrote:

tomorrow... I'm doing german homework  sad

Fine. German? Just translate it with the computer.


I want my block added!
It is the (if <> then () else () block period.

Blockspec and code
Below nXIII shortend it

Last edited by zorket (2010-09-30 17:04:07)


Marzipan11 must learn to not spoil

Offline

 

#256 2010-09-30 17:06:19

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

Re: Welcome to the OLD local block library!

zorket wrote:

sparks wrote:

tomorrow... I'm doing german homework  sad

Fine. German? Just translate it with the computer.

That always fails...


You can now reach me on Twitter @johnnydean1_

Offline

 

#257 2010-10-01 12:42:22

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

Re: Welcome to the OLD local block library!

Right, I've added the scratch "If %b then %s else %s" block by zorket (using nXIII's code) and also the scratch "%j %s" block by midnightleopard... which puts us up to date I think  smile


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

Offline

 

#258 2010-10-01 12:53:51

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

Re: Welcome to the OLD local block library!

I've also started a glossary (go to the first post to get to it) that will hopefully help those who don't know what arguments or booleans are. Please feel free to contribute or suggest clearer definitions  smile


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

Offline

 

#259 2010-10-01 15:55:55

zorket
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: Welcome to the OLD local block library!

You do almost the same with the <if <> then <> else <> block! Just a little sprinkle and you've got it!

Blockspec:

('if %b then %b else %b' #b #if:then:else:)

And you have it! If you didn't throw in the (if () then () else () block, you have to add the code.
If the code is there already, the block should work. I also want to... SHUT UP AND TELL US THE CODE ALREADY!  mad 
fine. Here you go:

Code:

if: t1 then: t2 else: t3
t1 ifTrue: [^ t2].
^ t3

cool? if not, ask me question.

If you do not have the (if <> then () else () block,
Blockspec and code

Last edited by zorket (2010-10-01 17:55:35)


Marzipan11 must learn to not spoil

Offline

 

#260 2010-10-01 15:59:14

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

Re: Welcome to the OLD local block library!

only one question?


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

Offline

 

#261 2010-10-01 16:02:19

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

Re: Welcome to the OLD local block library!

darn, that was a question. Guess I'll never know if you like Fez's or not...

so the code is the same as the if then else with strings not booleans? can't you make the one with booleans by using three if then else's?

http://www.weebly.com/uploads/4/0/7/6/4076678/6924393.gif?750
does the same!
not that that's the point of the block sharing  tongue

Last edited by sparks (2010-10-01 16:06:38)


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

Offline

 

#262 2010-10-01 16:54:03

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

Re: Welcome to the OLD local block library!

sparks wrote:

darn, that was a question. Guess I'll never know if you like Fez's or not...

so the code is the same as the if then else with strings not booleans? can't you make the one with booleans by using three if then else's?

http://www.weebly.com/uploads/4/0/7/6/4 … 93.gif?750
does the same!
not that that's the point of the block sharing  tongue

But then you couldn't put it in blocks like if <>

Last edited by SSBBM (2010-10-03 15:42:49)


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

Offline

 

#263 2010-10-01 17:06:46

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

Re: Welcome to the OLD local block library!

SSBBM wrote:

sparks wrote:

darn, that was a question. Guess I'll never know if you like Fez's or not...

so the code is the same as the if then else with strings not booleans? can't you make the one with booleans by using three if then else's?

http://www.weebly.com/uploads/4/0/7/6/4 … 93.gif?750
does the same!
not that that's the point of the block sharing  tongue

But then you couldn't put it in blocks like if <>

true. I'll add it  smile  (this is where Panther's "$String$ as boolean" block comes in handy. Anyone code that to scratch?


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

Offline

 

#264 2010-10-02 07:50:01

zorket
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: Welcome to the OLD local block library!

I'm still charging alot of blocks!


The <true> block
category: operators

blockspec:

('true' #b #reportTrue)

Code:

reportTrue
^ true

Use: Reports true.

The <false> block
category: operators

blockspec:

('false' %b %reportFalse)

Code:

reportFalse
^ false

use: reports false.

I also still have <if <> then <> else <>.



Test these before you add them.

Last edited by zorket (2010-10-02 09:32:48)


Marzipan11 must learn to not spoil

Offline

 

#265 2010-10-02 10:09:28

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Welcome to the OLD local block library!

Yo sparks, I would be honored if you put my block in panther! I am not so sure it has the right url plugin. I am going to try implementing it in the panther source. I want credit!

EDIT: You guys have changed the uncoloredArgMorph thing alot. I tried it and my block didn't work. Perhaps one of you could fix it?

Last edited by midnightleopard (2010-10-02 10:15:36)


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#266 2010-10-02 11:06:21

zorket
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: Welcome to the OLD local block library!

Remix of my block on sensing: now it is (get (^)!

Credit to LS97

Blockspec: ('get %t' #r #getTime: 'date')

Code:

getTime: t1
    t1 = 'date' ifTrue: [^ Date today].
    t1 = 'short date' ifTrue: [^ Date today printFormat: #(1 2 3 $- 2 2 )].
    t1 = 'time' ifTrue: [^ Time now].
    t1 = 'seconds' ifTrue: [^ Time now seconds].
    t1 = 'minutes' ifTrue: [^ Time now minutes].
    t1 = 'hours' ifTrue: [^ Time now hours].
    t1 = 'weekday' ifTrue: [^ Date today weekday].

Code for scratch blocks > command block morph > private > uncolordArgMorphFor: add a strip:

Code:

    $t = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #timeNames;
         choice: ''].

Scratch objects > scriptable scratch morph, other ops:

Code:

timeNames
    ^ #('date' 'time' 'short date' 'seconds' 'minutes' 'hours' 'weekday' )

Last edited by zorket (2010-10-06 15:46:33)


Marzipan11 must learn to not spoil

Offline

 

#267 2010-10-02 11:39:57

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

Re: Welcome to the OLD local block library!

sparks wrote:

woah! A HUGE contribution from SSBBM there, that's great! I have added them all up! Thanks very much!

I got some more!

http://img541.imageshack.us/img541/6634/repeatsecs.gif

http://img826.imageshack.us/img826/5116/error.gif


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

Offline

 

#268 2010-10-02 12:29:07

zorket
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: Welcome to the OLD local block library!

blockz


To shorten the code for your BYOB <if <> then <> else <> block:


(Hat) <if <> then <> else <>

<if>  { if }
Report <{ then }>
<else>
Report <{ else }>

Last edited by zorket (2010-10-02 16:59:06)


Marzipan11 must learn to not spoil

Offline

 

#269 2010-10-03 13:53:21

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

Re: Welcome to the OLD local block library!

Two semi-unrelated questions.
1: How did you do the link to another post thing.
2: How do you do the download thing.

(Edit I know #1 one now)

Last edited by SSBBM (2010-10-03 15:25:50)


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

Offline

 

#270 2010-10-03 15:43:21

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

Re: Welcome to the OLD local block library!

SSBBM wrote:

sparks wrote:

darn, that was a question. Guess I'll never know if you like Fez's or not...

so the code is the same as the if then else with strings not booleans? can't you make the one with booleans by using three if then else's?

http://www.weebly.com/uploads/4/0/7/6/4 … 93.gif?750
does the same!
not that that's the point of the block sharing  tongue

But then you couldn't put it in blocks like if <>

Wait! You could put that in () = (true) and fit it in.


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

Offline

 

#271 2010-10-03 17:01:37

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

Re: Welcome to the OLD local block library!

Hi guys, i'm on my phone right now - internet's dead, so it may be a while before I can update the library - no copy and paste and I have to pay! thanks for understanding.


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

Offline

 

#272 2010-10-03 17:31:03

zorket
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: Welcome to the OLD local block library!

I still have a million blockz.


Marzipan11 must learn to not spoil

Offline

 

#273 2010-10-03 17:33:32

zorket
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: Welcome to the OLD local block library!

sparks wrote:

darn, that was a question. Guess I'll never know if you like Fez's or not...

so the code is the same as the if then else with strings not booleans? can't you make the one with booleans by using three if then else's?

http://www.weebly.com/uploads/4/0/7/6/4 … 93.gif?750
does the same!
not that that's the point of the block sharing  tongue

ALL codable blocks should be able to be scripted.

For example, the press green flag block:


[blocks]<broadcast[ scratch-startclicked[/blocks]

Besides you cannot fit circular blocks into booleans.
JUST ADD IT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Last edited by zorket (2010-10-03 17:34:54)


Marzipan11 must learn to not spoil

Offline

 

#274 2010-10-03 21:33:56

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Welcome to the OLD local block library!

My latest BYOB Operators creation
http://i53.tinypic.com/2djupnc.jpg
the variable strngs is in list form.


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#275 2010-10-04 07:33:22

zorket
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: Welcome to the OLD local block library!

Well, since you're not adding a SINGLE block i'm giving you, i'll stop.


Marzipan11 must learn to not spoil

Offline

 

Board footer