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

#551 2010-12-01 19:36:10

coupdegrace
Scratcher
Registered: 2009-12-02
Posts: 42

Re: Welcome to the OLD local block library!

how do you make a line break in a block?
is it \n?


[CENTER]http://www.nodiatis.com/pub/11.jpg[/CENTER]

Offline

 

#552 2010-12-02 04:19:13

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

Re: Welcome to the OLD local block library!

coupdegrace wrote:

how do you make a line break in a block?
is it \n?

I think that's just what BYOB does when a blocks exeeds a certain width. It's automatic so can't be added to the block  smile


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

Offline

 

#553 2010-12-02 12:22:21

subzerostig
Scratcher
Registered: 2010-09-08
Posts: 100+

Re: Welcome to the OLD local block library!

I have created a BYOB block
http://i52.tinypic.com/ng290k.gif
Just a few things
1.) When creating variable inserters 1 and 2, make sure they only accept numbers.
2.) The abs and round function are to make sure the numbers are round and positive
3.) This is a question, When creating blocks, does the wait of 80 miliseconds still occur in repeat blocks?


There are 10 types of people people in this world, those that understand binary and those that do not: My latest Project: Present catcher V2                          06/12/2012

Offline

 

#554 2010-12-02 15:42:01

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

Re: Welcome to the OLD local block library!

sparks wrote:

coupdegrace wrote:

how do you make a line break in a block?
is it \n?

I think that's just what BYOB does when a blocks exeeds a certain width. It's automatic so can't be added to the block  smile

Yep! Just another little thing that makes BYOB 3 a lot better then Scratch 1.4

subzerostig wrote:

I have created a BYOB block
http://i52.tinypic.com/ng290k.gif
Just a few things
1.) When creating variable inserters 1 and 2, make sure they only accept numbers.
2.) The abs and round function are to make sure the numbers are round and positive
3.) This is a question, When creating blocks, does the wait of 80 miliseconds still occur in repeat blocks?

Great block, but it's already been made! () ^ (), the ^ means 'to the power of'. I'm not sure if sparks will add your version.
Answer to your question: It seemed to have no delay when set on atomic, but it could have a very small one. Your question has inspired me to make this block:
http://img130.imageshack.us/img130/8030/repeatwoutdelay.gif


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

Offline

 

#555 2010-12-02 15:58:27

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

Re: Welcome to the OLD local block library!

[open string dialog to type in]

blockspec:

('open string dialog to type in' #- #openTypeDialog)

non - tested code:

Code:

openTypeDialog
| t1 |
t1 _ StringDialog ask: 'type.'

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


Marzipan11 must learn to not spoil

Offline

 

#556 2010-12-02 16:14:53

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

Re: Welcome to the OLD local block library!

http://dl.dropbox.com/u/6273449/BlockLibraryTitle2.png
^Back to BYOB blocks


Uploading a BYOB block to the library

1) Make your block!

2) Place your block in in the script area alone.

http://img403.imageshack.us/img403/482/blockn.png

3) Right click, then click save picture of scripts.

http://img88.imageshack.us/img88/4011/savepicofscripts.png

3) Right click on your block and then click edit. Save a picture of the scripts like you did your the single block

4)Upload the pictures somewhere.

5)Post them here. Use this code

Code:

 [url=(script image url here)][img](Block image url here)[/img][/url]

____________________________________
^Back to BYOB blocks

Last edited by SSBBM (2011-03-26 19:12:26)


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

Offline

 

#557 2010-12-02 16:16:16

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

Re: Welcome to the OLD local block library!

^ BYOB uploading tutorial.


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

Offline

 

#558 2010-12-02 17:35:27

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

Re: Welcome to the OLD local block library!

cool! You forgot to post how to upload the scripts for the blocks though  smile


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

Offline

 

#559 2010-12-02 17:52:08

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

Re: Welcome to the OLD local block library!

sparks wrote:

cool! You forgot to post how to upload the scripts for the blocks though  smile

I don't know what you mean.  hmm  I did update it a little.


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

Offline

 

#560 2010-12-02 20:22:57

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

Re: Welcome to the OLD local block library!

How about this block:

It's an IP address block.

Code:

showNetworkAddressBlock
    | t1 t2 t3 |
    Socket initializeNetwork.
    t1 _ NetNameResolver localHostAddress.
    t2 _ nil.
    t3 _ NetNameResolver stringFromAddress: t1.
    (t2 notNil and: [t2 ~= t1])
        ifTrue: [t3 _ t3 , String cr , 'Internet:   ' , (NetNameResolver stringFromAddress: t2)].
    ^ t3

BlockSpec:

('Ip adress' #r #showNetworkAddressBlock)


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

 

#561 2010-12-03 03:05:52

subzerostig
Scratcher
Registered: 2010-09-08
Posts: 100+

Re: Welcome to the OLD local block library!

SSBBM wrote:

sparks wrote:

coupdegrace wrote:

how do you make a line break in a block?
is it \n?

I think that's just what BYOB does when a blocks exeeds a certain width. It's automatic so can't be added to the block  smile

Yep! Just another little thing that makes BYOB 3 a lot better then Scratch 1.4

subzerostig wrote:

I have created a BYOB block
http://i52.tinypic.com/ng290k.gif
Just a few things
1.) When creating variable inserters 1 and 2, make sure they only accept numbers.
2.) The abs and round function are to make sure the numbers are round and positive
3.) This is a question, When creating blocks, does the wait of 80 miliseconds still occur in repeat blocks?

Great block, but it's already been made! () ^ (), the ^ means 'to the power of'. I'm not sure if sparks will add your version.
Answer to your question: It seemed to have no delay when set on atomic, but it could have a very small one. Your question has inspired me to make this block:
http://img130.imageshack.us/img130/8030 … tdelay.gif

Whoops!  hmm
my mistake.
well at least I tried (and failed)
Anyway, now that I know that atomic speeds everything up.  I can create 2 new blocks!
all the variable inserters are numbers only
And make sure the blocks are atomic.  big_smile
http://i52.tinypic.com/kbvwpl.gif
And its more advanced version
http://i54.tinypic.com/18fyf9.gif

Last edited by subzerostig (2010-12-04 04:30:04)


There are 10 types of people people in this world, those that understand binary and those that do not: My latest Project: Present catcher V2                          06/12/2012

Offline

 

#562 2010-12-03 06:11:40

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

Re: Welcome to the OLD local block library!

@ SSBBM, I mean that your tutorial does not explain how to upload a picture of the blocks that make up your block (the image I link to in the library)


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

Offline

 

#563 2010-12-03 12:01:22

subzerostig
Scratcher
Registered: 2010-09-08
Posts: 100+

Re: Welcome to the OLD local block library!

Hello!
I have made a project that finds prime numbers!
here is it's script
http://i52.tinypic.com/207l20z.gif
And then I thought that while I was at it I might as well make a block
http://i55.tinypic.com/1znn6yx.gif
the BYOB block still takes a few seconds to calculate up to 100 prime numbers even on atomic though.
Hope it makes the list


There are 10 types of people people in this world, those that understand binary and those that do not: My latest Project: Present catcher V2                          06/12/2012

Offline

 

#564 2010-12-03 12:21:23

subzerostig
Scratcher
Registered: 2010-09-08
Posts: 100+

Re: Welcome to the OLD local block library!

But then I might as well create some more blocks:
http://i51.tinypic.com/2iiwgsl.gif
to give the factors of a number
and
http://i52.tinypic.com/iqa7ow.gif
to say how many factors of a number there are

Last edited by subzerostig (2010-12-03 12:22:03)


There are 10 types of people people in this world, those that understand binary and those that do not: My latest Project: Present catcher V2                          06/12/2012

Offline

 

#565 2010-12-03 13:28:30

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

Re: Welcome to the OLD local block library!

looks like I need to cdo an update soon then ^_^

I tell you what I'd love to do for the library, have some way for me to keep track of how many times a block's code was viewed, so people can get an idea of how often their blocks were downloaded. The only way I can think of doing that is using php so that each link to a block code is directed to a php page, then redirected to the actual image/code. I could keep track of downloads then, and use an image to display automatically how many downloads that block has had... don't know enough php though...


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

Offline

 

#566 2010-12-03 14:57:23

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

Re: Welcome to the OLD local block library!

Wow! I love your blocks, subzerostig!
Sparls, I would love to help you with the download thing, but I can't do anything but Scratch.  lol

BTW, I'm going to try to make some BYOB blocks!

Last edited by SSBBM (2010-12-03 14:57:57)


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

Offline

 

#567 2010-12-03 15:47:36

subzerostig
Scratcher
Registered: 2010-09-08
Posts: 100+

Re: Welcome to the OLD local block library!

SSBBM wrote:

Wow! I love your blocks, subzerostig!
Sparls, I would love to help you with the download thing, but I can't do anything but Scratch.  lol

BTW, I'm going to try to make some BYOB blocks!

Thanks  big_smile
btw I love your blocks as well


There are 10 types of people people in this world, those that understand binary and those that do not: My latest Project: Present catcher V2                          06/12/2012

Offline

 

#568 2010-12-03 18:16:19

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

Re: Welcome to the OLD local block library!

SSBBM wrote:

...BTW, I'm going to try to make some BYOB blocks!

http://img638.imageshack.us/img638/4117/20446174.gif
Credit to meowmeow55

meowmeow55, I just found a mistake in your BYOB project. In my block "if <> | if none are true | you gave some credit to zxz1661, but it should be for my click green flag block.

Oh, and do you like my sig?

Last edited by SSBBM (2010-12-03 18:22:52)


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

Offline

 

#569 2010-12-04 04:14:02

subzerostig
Scratcher
Registered: 2010-09-08
Posts: 100+

Re: Welcome to the OLD local block library!

subzerostig wrote:

SSBBM wrote:

sparks wrote:


I think that's just what BYOB does when a blocks exeeds a certain width. It's automatic so can't be added to the block  smile

Yep! Just another little thing that makes BYOB 3 a lot better then Scratch 1.4

subzerostig wrote:

I have created a BYOB block
http://i52.tinypic.com/ng290k.gif
Just a few things
1.) When creating variable inserters 1 and 2, make sure they only accept numbers.
2.) The abs and round function are to make sure the numbers are round and positive
3.) This is a question, When creating blocks, does the wait of 80 miliseconds still occur in repeat blocks?

Great block, but it's already been made! () ^ (), the ^ means 'to the power of'. I'm not sure if sparks will add your version.
Answer to your question: It seemed to have no delay when set on atomic, but it could have a very small one. Your question has inspired me to make this block:
http://img130.imageshack.us/img130/8030 … tdelay.gif

Whoops!  hmm
my mistake.
well at least I tried (and failed)
Anyway, now that I know that atomic speeds everything up.  I can create 2 new blocks!
all the variable inserters are numbers only
And make sure the blocks are atomic.  big_smile
http://i53.tinypic.com/2bz59c.gif
And its more advanced version
http://i56.tinypic.com/2j5xtzd.gif

btw, I just realised these blocks have a 'clear' function on them!
I'm going to change it now.


There are 10 types of people people in this world, those that understand binary and those that do not: My latest Project: Present catcher V2                          06/12/2012

Offline

 

#570 2010-12-04 08:44:22

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

Re: Welcome to the OLD local block library!

zorket wrote:

[open string dialog to type in]

blockspec:

('open string dialog to type in' #- #openTypeDialog)

non - tested code:

Code:

openTypeDialog
| t1 |
t1 _ StringDialog ask: 'type.'

Marzipan11 must learn to not spoil

Offline

 

#571 2010-12-04 21:00:25

me450
Scratcher
Registered: 2009-03-31
Posts: 56

Re: Welcome to the OLD local block library!

zorket wrote:

zorket wrote:

[open string dialog to type in]

blockspec:

('open string dialog to type in' #- #openTypeDialog)

non - tested code:

Code:

openTypeDialog
| t1 |
t1 _ StringDialog ask: 'type.'

how do you get the answer

Offline

 

#572 2010-12-05 08:40:05

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

Re: Welcome to the OLD local block library!

me450 wrote:

zorket wrote:

[open string dialog to type in]

blockspec:

non - tested code:

Code:

openTypeDialog
| t1 |
t1 _ StringDialog ask: 'type.'

how do you get the answer

What do you mean?

Last edited by zorket (2010-12-05 08:40:30)


Marzipan11 must learn to not spoil

Offline

 

#573 2010-12-05 18:16:35

me450
Scratcher
Registered: 2009-03-31
Posts: 56

Re: Welcome to the OLD local block library!

zorket wrote:

me450 wrote:

zorket wrote:

[open string dialog to type in]

blockspec:

non - tested code:

Code:

openTypeDialog
| t1 |
t1 _ StringDialog ask: 'type.'

how do you get the answer

What do you mean?

how do i get what they typed in

Offline

 

#574 2010-12-05 18:36:41

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

Re: Welcome to the OLD local block library!

Use this:

[code]openTypeDialog
| t1 |
t1 _ StringDialog ask: 'type.'[code]

There are lots of tricks using BBcode.

Last edited by zorket (2010-12-05 18:37:44)


Marzipan11 must learn to not spoil

Offline

 

#575 2010-12-06 22:41:53

me450
Scratcher
Registered: 2009-03-31
Posts: 56

Re: Welcome to the OLD local block library!

zorket wrote:

Use this:

[code]openTypeDialog
| t1 |
t1 _ StringDialog ask: 'type.'[code]

There are lots of tricks using BBcode.

That is a very confusing post

firstly you make a BB code error.  thn you post a link about BB code

and you also repost that block that doesnt allow the creator to get the answer

Offline

 

Board footer