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

#1651 2011-07-19 15:16:12

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

Re: ITopic: Welcome to your local block library!

TuragaTreeko wrote:

poemon1 wrote:

scimonster wrote:


changeNameTo: self objName: t1

changeNameTo: t1
self objName: t1 asString
wink

HEY! THAT WAS MY BLOCK! Oh, btw, it should be
objName_t1 instead.
Also, does anyone know why

Code:

absoluteValue: t1
     [^ t1 asPositive].

doesn't work for

Code:

('|%n|' #r #absoluteValue: '-5')

both fixed!


the the the the the

Offline

 

#1652 2011-07-19 15:16:35

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

Re: ITopic: Welcome to your local block library!

TuragaTreeko wrote:

poemon1 wrote:

scimonster wrote:


changeNameTo: self objName: t1

changeNameTo: t1
self objName: t1 asString
wink

HEY! THAT WAS MY BLOCK! Oh, btw, it should be
objName_t1 instead.
Also, does anyone know why

Code:

absoluteValue:t1
     [^t1 asPositive]

doesn't work for

Code:

('|%n|' #r #absoluteValue: -5)

ABS is already an implemented function.  tongue

Code:

^t1 abs

And the other code I posted works fine...

Offline

 

#1653 2011-07-19 15:52:59

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

Re: ITopic: Welcome to your local block library!

scimonster wrote:

TuragaTreeko wrote:

poemon1 wrote:

changeNameTo: t1
self objName: t1 asString
wink

HEY! THAT WAS MY BLOCK! Oh, btw, it should be
objName_t1 instead.
Also, does anyone know why

Code:

absoluteValue:t1
     [^t1 asPositive]

doesn't work for

Code:

('|%n|' #r #absoluteValue: -5)

ABS is already an implemented function.  tongue

Code:

^t1 abs

And the other code I posted works fine...

Code:

absoluteValue:t1
t1 < 0 ifTrue: [^ t1 * -1].
    ^ t1

Yeah, sorry bout that, (the abs thing), but I was the one who originally made the open user page and rename page, both work fine, and they haven't been added, and jslomba and poeman1 ended up getting the credit! mad   mad   mad   mad   mad  mad: So, I am not happy.


http://goo.gl/RDqKF

Offline

 

#1654 2011-07-19 20:13:44

poemon1
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: ITopic: Welcome to your local block library!

http://i51.tinypic.com/sq5blu.jpg
http://i51.tinypic.com/esqp2b.jpg


http://i47.tinypic.com/rrqe13.gif

Offline

 

#1655 2011-07-20 01:34:42

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

Re: ITopic: Welcome to your local block library!

TuragaTreeko wrote:

But I was the one who originally made the open user page and rename page, both work fine, and they haven't been added, and jslomba and poeman1 ended up getting the credit! mad   mad   mad   mad   mad  mad: So, I am not happy.

Sorry about that... credit will be given correctly later today, when I run an update.  smile

Offline

 

#1656 2011-07-20 07:22:57

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

Re: ITopic: Welcome to your local block library!

I checked the queue (sorry if I'm not supposed to be able to do that) and I noticed many blocks I shared here are not in the library or in the queue.  I would provide links to the posts, but I don't know how to link to a specific post; only how to link to a page.  Can anyone please tell me, so I can have them added?

EDIT:  Scimonster also mentioned an improvement to the integer boolean.  I think it should be implemented, and it should also be implemented where I used that code in the prime boolean.  (credit: improved by Scimonster on both)

Last edited by Greenatic (2011-07-20 07:32:17)

Offline

 

#1657 2011-07-20 07:27:03

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

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

I checked the queue (sorry if I'm not supposed to be able to do that) and I noticed many blocks I shared here are not in the library or in the queue.  I would provide links to the posts, but I don't know how to link to a specific post; only how to link to a page.  Can anyone please tell me, so I can have them added?

Sorry if we missed them! Also, you're fine to look at the queue, it's not a librarian-only area!

You know in the top left corner of every post in the blue bar, there's the time and date that the post was sent? That's a link! Simply copy the link location of that post and then send us that!  smile


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

Offline

 

#1658 2011-07-20 07:46:33

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

Re: ITopic: Welcome to your local block library!

sparks wrote:

Greenatic wrote:

I checked the queue (sorry if I'm not supposed to be able to do that) and I noticed many blocks I shared here are not in the library or in the queue.  I would provide links to the posts, but I don't know how to link to a specific post; only how to link to a page.  Can anyone please tell me, so I can have them added?

Sorry if we missed them! Also, you're fine to look at the queue, it's not a librarian-only area!

You know in the top left corner of every post in the blue bar, there's the time and date that the post was sent? That's a link! Simply copy the link location of that post and then send us that!  smile

I think these are the missing ones:
http://scratch.mit.edu/forums/viewtopic … 11#p812911 (w/ jslomba)
http://scratch.mit.edu/forums/viewtopic … 14#p817114
http://scratch.mit.edu/forums/viewtopic … 51#p817351
http://scratch.mit.edu/forums/viewtopic … 26#p817426
http://scratch.mit.edu/forums/viewtopic … 89#p817589

PLEASE NOTE:
#1: Sorry if any of these are actually on there, and I didn't see them.
#2:  The <%n is an integer?> block contains code to test if the number is a decimal.
As scimonster noted, it is much easier to do this:

Code:

 ^ t1 = t1 rounded

I think this should be implemented in the block, with credit to Scimonster for the improvement.  In addition, the <%n is prime?> block contains the same code to test for a decimal.  This should be changed as well, with credit to Scimonster for the improvement.

Offline

 

#1659 2011-07-20 07:53:52

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: ITopic: Welcome to your local block library!

How do you check the queue?


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#1660 2011-07-20 07:59:06

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

Re: ITopic: Welcome to your local block library!

ssss wrote:

How do you check the queue?

On the first post of this thread, near the bottom of the post, you'll see an underlined sentence or two.  The last character of it, an exclamation mark, is the link.

Offline

 

#1661 2011-07-20 08:13:09

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

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

ssss wrote:

How do you check the queue?

On the first post of this thread, near the bottom of the post, you'll see an underlined sentence or two.  The last character of it, an exclamation mark, is the link.

The signature.  wink

Offline

 

#1662 2011-07-20 08:15:14

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

Re: ITopic: Welcome to your local block library!

scimonster wrote:

TuragaTreeko wrote:

But I was the one who originally made the open user page and rename page, both work fine, and they haven't been added, and jslomba and poeman1 ended up getting the credit! mad   mad   mad   mad   mad   mad  So, I am not happy.

Sorry about that... credit will be given correctly later today, when I run an update.  smile

Thank You!!!!!!!  big_smile


http://goo.gl/RDqKF

Offline

 

#1663 2011-07-20 08:20:23

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

Re: ITopic: Welcome to your local block library!

hey, I just noticed you put my name twice on the block library statistics page, except one is spelled wrong. can you make the first one say [6] and delete the other one?

Last edited by jslomba (2011-07-20 08:20:29)


the the the the the

Offline

 

#1664 2011-07-20 08:22:47

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

Re: ITopic: Welcome to your local block library!

jslomba wrote:

hey, I just noticed you put my name twice on the block library statistics page, except one is spelled wrong. can you make the first one say [6] and delete the other one?

Yes, when I run my update. In a couple hours.  wink

Offline

 

#1665 2011-07-20 13:56:33

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

Scratch Blocks added: 26
http://weebly.com/uploads/8/1/3/6/8136364/7756782.gif by SSSS
http://weebly.com/uploads/8/1/3/6/8136364/2436787.gif by TuragaTreeko, improved by Scimonster
http://weebly.com/uploads/8/1/3/6/8136364/9599825.gif by TuragaTreeko
http://www.weebly.com/uploads/8/1/3/6/8136364/5808558.gif by poemon1
http://weebly.com/uploads/8/1/3/6/8136364/4458874.gif by Hardmath123
http://weebly.com/uploads/8/1/3/6/8136364/7268687.gif by Hardmath123
http://weebly.com/uploads/8/1/3/6/8136364/8945775.gif by Hardmath123
http://weebly.com/uploads/8/1/3/6/8136364/6265761.gif by jsombla
http://polyeztahpuppies.webs.com/height.gif by Baderous
http://polyeztahpuppies.webs.com/width.gif by Baderous
http://weebly.com/uploads/8/1/3/6/8136364/566770.gif by Greenatic
http://megamod.weebly.com/uploads/7/1/5/6/7156046/7181233.gif by jslomba
http://megamod.weebly.com/uploads/7/1/5/6/7156046/8212093.gif by jslomba
http://i.imgur.com/Bib6g.gif by owetre18
http://weebly.com/uploads/8/1/3/6/8136364/4217699.gif by SSSS
http://polyeztahpuppies.webs.com/gopercenttosprite.gif by Greenatic
http://polyeztahpuppies.webs.com/gopercenttoxy.gif by Greenatic
http://polyeztahpuppies.webs.com/goinbetween.gif by Greenatic and jslomba
http://polyeztahpuppies.webs.com/factorial.gif by Greenatic
http://polyeztahpuppies.webs.com/isinteger.gif by Greenatic
http://polyeztahpuppies.webs.com/isfibonacci.gif by Greenatic
http://polyeztahpuppies.webs.com/isprime.gif by Greenatic
http://polyeztahpuppies.webs.com/miny.gif by Greenatic
http://polyeztahpuppies.webs.com/maxy.gif by Greenatic
http://polyeztahpuppies.webs.com/minx.gif by Greenatic
http://polyeztahpuppies.webs.com/maxx.gif by Greenatic

BYOB Blocks added: 1
http://i.imgur.com/bdRTk.gif by owetre18

Other updates: 8
Added how to make a cap block and how to remove a Stage monitor in the Glossary.
New Scratch Blocks contributors: SSSS, TuragaTreeko, poemon1, Baderous, Greenatic, owetre18.

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

Last edited by YourLocalBlockLib (2011-07-21 04:39:25)


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

Offline

 

#1666 2011-07-20 14:32:39

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

Re: ITopic: Welcome to your local block library!

Scimonster, please note that I just fixed a bug in the <%n is prime?> block.  The aforementioned changes also should be made.

Offline

 

#1667 2011-07-20 14:43:52

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

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

Scimonster, please note that I just fixed a bug in the <%n is prime?> block.  The aforementioned changes also should be made.

Yep, I know.  smile
~sci


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

Offline

 

#1668 2011-07-20 15:02:01

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

Re: ITopic: Welcome to your local block library!

Oh, and scimonster, I just made 4 more blocks.   smile

http://polyeztahpuppies.webs.com/maxx.gif
http://polyeztahpuppies.webs.com/minx.gif
http://polyeztahpuppies.webs.com/maxy.gif
http://polyeztahpuppies.webs.com/miny.gif

Blockspecs:

Code:

 ('max x' #r #MaxX) ('min x' #r #MinX) ('max y' #r #MaxY) ('min y' #r #MinY)

Methods:

Code:

MaxX
    ^ self xpos + (0.5 * self width)
MaxY
    ^ self ypos + (0.5 * self height)
MinX
    ^ self xpos - (0.5 * self width)
MinY
    ^ self ypos - (0.5 * self height)

Offline

 

#1669 2011-07-20 15:08:18

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

Re: ITopic: Welcome to your local block library!

I have some more to go, but I have to get off now.
I'M DOING THIS UPDATE! DO NOT CHANGE!
Thank you.

Greenatic, I added them to the queue. I also included a link to your post with other links.  tongue
I'll try to add them tomorrow morning (for me).

Remember, DO NOT EDIT THE LIBRARY!

~"teh almighty Scimonster" (I'm not feeling so almighty if I can't stay up late to do this though D: )

Last edited by YourLocalBlockLib (2011-07-20 15:09:00)


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

Offline

 

#1670 2011-07-20 15:11:09

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

Re: ITopic: Welcome to your local block library!

YourLocalBlockLib wrote:

I'll try to add them tomorrow morning (for me).

What timezone are you?  (I'm pretty sure your timezone doesn't count as personal info, unless you happen to live in a remote desert island in the middle of the Atlantic ocean.   tongue  )

EDIT:  Never mind, I looked at your profile.  You're from Israel, right?  Are you Jewish?  No offence meant--after all, I'm Jewish  wink

Last edited by Greenatic (2011-07-20 15:15:01)

Offline

 

#1671 2011-07-20 15:45:14

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

Re: ITopic: Welcome to your local block library!

Can anyone help me make a panther block called !$Color$ subtract $Color$! it is basicly the oposite of mix. Here is my code:

Code:

| t3 t4 t5 |

t3_self colorR: (t1)  - self colorR: (t2)
t4_self colorG: (t1)  - self colorG: (t2) 
t5_self colorB: (t1)  - self colorB: (t2) 
t3 < 0 ifTrue [ t3_0] 
t4 < 0 ifTrue [ t4_0] 
t5 < 0 ifTrue [ t5_0] 
^Color r:t3  g:t4  b: t5

When I run it it shows an error message complaining that there is nothing more expected for t4. If you work out how to fix it, PLEASE give credit to me!!!


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

 

#1672 2011-07-20 15:46:35

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

Re: ITopic: Welcome to your local block library!

TuragaTreeko wrote:

Pecola1 wrote:

TuragaTreeko wrote:


Oh, YES!  big_smile   big_smile   big_smile   big_smile   big_smile   hmm . Please?

Uh oh... sorry, I am on vacation now, but I believe Slash has the block. Look at the code and see what it is, I will check later.

Slash has indeed got that block. I hit edit elements to see the code. I didn't understand it. I think slash uses a different syntax.

Use the system browser.


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

 

#1673 2011-07-20 15:53:33

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

Re: ITopic: Welcome to your local block library!

TuragaTreeko wrote:

Pecola1 wrote:

TuragaTreeko wrote:


Oh, YES!  big_smile   big_smile   big_smile   big_smile   big_smile   hmm . Please?

Uh oh... sorry, I am on vacation now, but I believe Slash has the block. Look at the code and see what it is, I will check later.

@Pecola1 Slash has some weird thing for the veiw code thing, and I don't understand any of it. Are you back yet? I would really love <3 the code for that. please.

Not back. ;( Cousin and her daughters are at sowing lessons, and the dads at work, so I have some time right now to use internet.


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

 

#1674 2011-07-20 15:54:48

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

Re: ITopic: Welcome to your local block library!

scimonster wrote:

rubiks_cube_guy238 wrote:

scimonster wrote:

1) You should have shared this on the Library threadwink
2) The code should be

Code:

errorReporter
^ self error

The code should be nothing. The selector can be #error, and it will work.

*facepalm* why didn't I think of that?

That's been shared too many times...


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

 

#1675 2011-07-20 15:57:34

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

Re: ITopic: Welcome to your local block library!


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

 

Board footer