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

#1726 2011-07-23 23:51:07

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

Re: ITopic: Welcome to your local block library!

Baderous wrote:

poemon1 wrote:

('pi' #r #pi)

Code:

 
pi
^ 3.14159265

('pi^2' #r #piRaisedToTwo)

Code:

 
piRaisedToTwo
^ 3.14159265 raisedTo: 2

If you want to use Pi, you should use the Float class variable Pi, which is defined as:

Pi = 3.14159265358979323846264338327950288

The pi block is already shared, check Scratch operators.
So is the raised to block, so they can just be combined. Sorry, I don't think I'll add it.
Also, I'm not doing queuing right now, as I'll just take any from after the most recent update.

Offline

 

#1727 2011-07-24 07:40:01

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

Re: ITopic: Welcome to your local block library!

TuragaTreeko wrote:

scimonster wrote:

Greenatic wrote:


I think you're supposed to use ifNaN, not ifNan.  Maybe that's messing it up.

Forgot a couple periods.

Oh, where?

Fixed in the original quote.
"]]." should have been "].].". ;_)

Offline

 

#1728 2011-07-24 09:22:43

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

Re: ITopic: Welcome to your local block library!

scimonster wrote:

TuragaTreeko wrote:

scimonster wrote:


Forgot a couple periods.

Oh, where?

Fixed in the original quote.
"]]." should have been "].].". ;_)

Ah. Okay!


http://goo.gl/RDqKF

Offline

 

#1729 2011-07-24 10:05:23

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

Re: ITopic: Welcome to your local block library!

I think we should have a librarians' dropbox account so we can all upload Panther blocks. I'm working a BBCode generator right now, because physically updating it drove me crazy! XD

Offline

 

#1730 2011-07-24 18:12:52

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

Re: ITopic: Welcome to your local block library!

lol, in one of my motion blocks:
('go %n% of the way to x: %n y: %n' #- #Distance:X:Y smile

The last two characters got turned into a smiley.  Can someone go fix that?


100TH POST!!!!!!!!!!!

Offline

 

#1731 2011-07-24 20:03:43

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

Re: ITopic: Welcome to your local block library!

lol, in one of my motion blocks:
('go %n% of the way to x: %n y: %n' #- #Distance:X:Y:)

The last two characters got turned into a smiley.  Can someone go fix that?


100TH POST!!!!!!!!!!!


the the the the the

Offline

 

#1732 2011-07-24 20:29:10

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

Re: ITopic: Welcome to your local block library!

jslomba wrote:

lol, in one of my motion blocks:
('go %n% of the way to x: %n y: %n' #- #Distance:X:Y smile

The last two characters got turned into a smiley.  Can someone go fix that?


100TH POST!!!!!!!!!!!

No, I meant in the library post.

Offline

 

#1733 2011-07-25 01:03:51

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

Re: ITopic: Welcome to your local block library!

Yeah, I'll do that.
I'll also see if I can have enough time on the computer to do an actual update.
Maybe night, my time, and continue into tomorrow.  hmm

Offline

 

#1734 2011-07-25 16:09:49

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

Re: ITopic: Welcome to your local block library!

jslomba wrote:

lol, in one of my motion blocks:
('go %n% of the way to x: %n y: %n' #- #Distance:X:Y smile

The last two characters got turned into a smiley.  Can someone go fix that?


100TH POST!!!!!!!!!!!

Code:

Put it in a code box like this with the code tag

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

 

#1735 2011-07-25 18:23:40

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

Re: ITopic: Welcome to your local block library!

joefarebrother wrote:

jslomba wrote:

lol, in one of my motion blocks:
('go %n% of the way to x: %n y: %n' #- #Distance:X:Y smile

The last two characters got turned into a smiley.  Can someone go fix that?


100TH POST!!!!!!!!!!!

Code:

Put it in a code box like this with the code tag

It must have been a weird glitch, because I'm pretty sure it WAS in a code tag...

Offline

 

#1736 2011-07-25 22:26:47

Bookworm300
Scratcher
Registered: 2011-06-04
Posts: 28

Re: ITopic: Welcome to your local block library!

Hey I have a question. Does BYOB automatically add a folder named Scratch Projects when you try to open a project from it?

Offline

 

#1737 2011-07-26 13:50:08

owetre18
Scratcher
Registered: 2009-07-01
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Bookworm300 wrote:

Hey I have a question. Does BYOB automatically add a folder named Scratch Projects when you try to open a project from it?

No, it has a scratch projects folder in it when downloaded. Next time, make a new topic to ask a question, not in another forum.

Offline

 

#1738 2011-07-27 07:59:02

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

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

joefarebrother wrote:

jslomba wrote:

lol, in one of my motion blocks:
('go %n% of the way to x: %n y: %n' #- #Distance:X:Y smile

The last two characters got turned into a smiley.  Can someone go fix that?


100TH POST!!!!!!!!!!!

Code:

Put it in a code box like this with the code tag

It must have been a weird glitch, because I'm pretty sure it WAS in a code tag...

It was in a quote tag. I just need to turn off smilies for that post.

Offline

 

#1739 2011-07-27 10:31:44

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

Re: ITopic: Welcome to your local block library!

@Librarians:  I think you guys are behind on the queue since the beginning of page 68.

I also asked for two edits of my blocks, one of the <%n is prime> block, with credit as an improvement by Scimonster, and an edit of the 4 draggable/undraggable stack blocks, also with credit as an improvement by Scimonster, since he said he knew how to remove mouse-pointer as an option for the blocks.

Last edited by Greenatic (2011-07-27 10:35:43)

Offline

 

#1740 2011-07-27 11:12:15

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

Re: ITopic: Welcome to your local block library!

Yes, I know. I have limited computer though, so I don't know if I can do an update.  hmm
And the update can just be run from all blocks shared after the most recent update.

Offline

 

#1741 2011-07-27 11:49:54

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

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

TuragaTreeko wrote:

I have a block, but it is having a fit about the double ifTrue:'s. So if anyone can help, Thanks.

Code:

First, make a new dropdown (for %Y) with choice of 'Infinite', and the menu should contain 'Infinite', 'Not a Number', and 'Too Small'.

Code:

('%s is %Y' #b #not: 'string'
Number:)

Code:

not:t1Number:t2
     t2 = 'Infinite' ifTrue:
    [t1 isInf ifTrue: [^true]].
   t2 = 'Not a Number' ifTrue:
    [t1 isNan ifTrue: [^true]].
   t2 = 'Too Small' ifTrue:
    [t1 isNil ifTrue: [^true]].
            ^false

I think you're supposed to use ifNaN, not ifNan.  Maybe that's messing it up.

Code:

not:t1Number:t2
     t2 = 'Infinite' ifTrue:
    [t1 isInf ifTrue: [^true].].
   t2 = 'Not a Number' ifTrue:
    [t1 isNan ifTrue: [^true].].
   t2 = 'Too Small' ifTrue:
    [t1 isNil ifTrue: [^true].].
            ^false

Okay, FIXED! Will someone queue it?

Last edited by TuragaTreeko (2011-07-27 11:51:06)


http://goo.gl/RDqKF

Offline

 

#1742 2011-07-27 12:58:34

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

Re: ITopic: Welcome to your local block library!

I told you, we'll just take any blocks shared after the second biggest update in the history of the Library!

Offline

 

#1743 2011-07-27 12:59:26

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

Re: ITopic: Welcome to your local block library!

scimonster wrote:

Greenatic wrote:

joefarebrother wrote:

Code:

Put it in a code box like this with the code tag

It must have been a weird glitch, because I'm pretty sure it WAS in a code tag...

It was in a quote tag. I just need to turn off smilies for that post.

You don't need to turn off smilies, you can use the [i][/i] trick: :[i][/i]D becomes :D
See?  big_smile


Yawn.

Offline

 

#1744 2011-07-27 13:02:36

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

Re: ITopic: Welcome to your local block library!

meowmeow55 wrote:

scimonster wrote:

Greenatic wrote:

It must have been a weird glitch, because I'm pretty sure it WAS in a code tag...

It was in a quote tag. I just need to turn off smilies for that post.

You don't need to turn off smilies, you can use the [i][/i] trick: :[i][/i]D becomes :D
See?  big_smile

I know that, but it's easier just to have it come automatically. ;D

Offline

 

#1745 2011-07-27 14:10:56

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

Re: ITopic: Welcome to your local block library!

scimonster wrote:

I told you, we'll just take any blocks shared after the second biggest update in the history of the Library!

And when exactly is that going to be?

Offline

 

#1746 2011-07-27 14:14:25

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

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

scimonster wrote:

I told you, we'll just take any blocks shared after the second biggest update in the history of the Library!

And when exactly is that going to be?

The second biggest was the one before the most recent: 26 blocks!

Offline

 

#1747 2011-07-27 14:18:14

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: ITopic: Welcome to your local block library!

How do you add blocks to scratch?


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

#1748 2011-07-27 14:21:46

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

Re: ITopic: Welcome to your local block library!

scimonster wrote:

Greenatic wrote:

scimonster wrote:

I told you, we'll just take any blocks shared after the second biggest update in the history of the Library!

And when exactly is that going to be?

The second biggest was the one before the most recent: 26 blocks!

No, what I mean is, when are you going to do this gigantic update you mentioned?  You're really confusing me...

Offline

 

#1749 2011-07-27 14:22:47

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

Re: ITopic: Welcome to your local block library!

slinger wrote:

How do you add blocks to scratch?

Until the new download feature is finished, you have to do it the hard way.  Do you know how to open the browser?  Or how to use it?

Offline

 

#1750 2011-07-27 14:25:11

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

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

scimonster wrote:

Greenatic wrote:


And when exactly is that going to be?

The second biggest was the one before the most recent: 26 blocks!

No, what I mean is, when are you going to do this gigantic update you mentioned?  You're really confusing me...

No-one said anything about a gigantic update.
Librarians, could someone do the update?

Offline

 

Board footer