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

#526 2011-04-21 23:02:47

Matty3414
Scratcher
Registered: 2011-04-09
Posts: 100+

Re: ITopic: Welcome to your local block library!

@floppy_gunk Use imgur.com it lets you upload a few at the same time  wink


http://i.imgur.com/i87ba.pngDesigner - Photoshop, C4D

Offline

 

#527 2011-04-21 23:03:34

floppy_gunk
Scratcher
Registered: 2008-11-14
Posts: 500+

Re: ITopic: Welcome to your local block library!

Matty3414 wrote:

BYOB - Motion

If Touching [ ] Go to x: [ ] y: [ ]
http://i.imgur.com/TIk2k.gif

If Touching [ ] Go to x: [ ] y: [ ] - Script
http://i.imgur.com/p1Cvu.gif

Enjoy!

I don't really see the point of that, as you could simply use:
[blocks]
<if><touching[ sprite1
<go to x sad  0 )y sad  0
<end>
[/blocks]

It only requires 2 extra lines.


http://img163.imageshack.us/img163/1917/2856lg.jpg Get it now!  smile

Offline

 

#528 2011-04-21 23:06:43

floppy_gunk
Scratcher
Registered: 2008-11-14
Posts: 500+

Re: ITopic: Welcome to your local block library!

Matty3414 wrote:

@floppy_gunk Use imgur.com it lets you upload a few at the same time  wink

Ok, thanks!  smile
60 SECOND RULE


http://img163.imageshack.us/img163/1917/2856lg.jpg Get it now!  smile

Offline

 

#529 2011-04-21 23:40:47

Matty3414
Scratcher
Registered: 2011-04-09
Posts: 100+

Re: ITopic: Welcome to your local block library!

a Blocks a Block :p


http://i.imgur.com/i87ba.pngDesigner - Photoshop, C4D

Offline

 

#530 2011-04-22 00:01:07

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

Re: ITopic: Welcome to your local block library!

Pecola1 wrote:

zorket wrote:

Quit scratch shared by Pecola1:

This block doesn't save your current progress if you are working on a project. I'm trying not to hurt Pecola1's feelings, but here is a code that asks if you want to save the project, first.

Code:

exitScratch
    | t1 |
    t1 _ self ownerThatIsA: ScratchFrameMorph.
    t1 quitScratch

If the original code did the same thing, sorry.

I know, there is also one for making a boolean fit into it to decide weather or not you wan't to save progress, it is a little different.

blockspec

('quit Scratch %b and save for later %b' #- #quit:saveImage:)

Code:

quit: t1 saveImage: t2 
    Smalltalk snapshot: t2 andQuit: t1

When you open scratch it will be at the same EXACT position it was when it closed (if the second boolean is true.)

Again it is dinner time so i cannot put it on now.

If that works that would be so super-AWESOME.  big_smile

sparks wrote:

scimonster wrote:

sparks wrote:

hint hint there?  tongue

Oh no.  tongue
But you have posted in other forums. See your list of postswink

... I had no idea you could do that. You watch me a little too closely....

Simple taking a link.  wink  tongue

EDIT: 1900th post!  big_smile  big_smile

Last edited by scimonster (2011-04-22 00:05:36)

Offline

 

#531 2011-04-22 09:36:17

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

Re: ITopic: Welcome to your local block library!

floppy_gunk wrote:

I have some BYOB blocks:

http://img854.imageshack.us/img854/4091/3dpoint.gif
http://img714.imageshack.us/img714/9585/depth.gif
http://img163.imageshack.us/img163/3095/goto3d.gif

Sorry about using imageshack. It's the only image sharing tool I know that allows you to upload several images at the same time.

Wow floppy_gunk! These blocks are amazing!


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

Offline

 

#532 2011-04-22 11:59:01

komodo66
Scratcher
Registered: 2010-08-26
Posts: 8

Re: ITopic: Welcome to your local block library!

I think we might need this block for a lot of physics games but I know no squeak at all.
Can someone please make this block?

Block name:
[rotate () degrees in relation to x:(), y:()]
or
[rotate () degrees in relation to (sprite 1)]

Requested for
Scratch - Motion

Offline

 

#533 2011-04-22 14:10:51

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

Re: ITopic: Welcome to your local block library!

komodo66 wrote:

I think we might need this block for a lot of physics games but I know no squeak at all.
Can someone please make this block?

Block name:
[rotate () degrees in relation to x sad ), y sad )]
or
[rotate () degrees in relation to (sprite 1)]

Requested for
Scratch - Motion

That block right now is for BYOB (as the revolve block). Some could look at the code and use that for the scratch version. (Don't give me credit, give Kileymeister credit)


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

Offline

 

#534 2011-04-22 15:27:40

spkshark
Scratcher
Registered: 2011-03-05
Posts: 65

Re: ITopic: Welcome to your local block library!

I like all this stuff!  lol   smile 
http://scratch.mit.edu/static/icons/buddy/721837_med.png?t=2011-04-22+15%3A26%3A54


http://d2bm3ljpacyxu8.cloudfront.net/width/300/crop/0,0,300x145/spkshark.webs.com/scratch%20script.gif

Offline

 

#535 2011-04-22 15:31:33

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: ITopic: Welcome to your local block library!

I have an idea. Can you add a Bingo blocks section to the Block Library? I'm working on some blocks with the image inserter and the multi-line string inserter.
By the way, here's code for a 'turn fill screen off' block for the library.

Code:

fillOff
    Smalltalk fullScreenMode: false.
    World restoreDisplay.
    self isSticky: false.
    self extent: Display extent - 60.
    Preferences disable: #noviceMode.
    Preferences enable: #warnIfNoSourcesFile.
    Preferences enable: #warnIfNoChangesFile.
    Preferences insertionPointColor: (Color
            r: 0.4
            g: 1.0
            b: 0.0).
    Preferences textHighlightColor: (Color
            r: 0.4
            g: 1.0
            b: 0.0)

♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#536 2011-04-22 15:38:26

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

Re: ITopic: Welcome to your local block library!

We can add bingo blocks to the library, but unless they differ from the adding method of Scratch or Panther, they won't be added to a new section. For Bingo to have their own section the adding process would have to be specialist - like BYOB which uses existing blocks, or have different ways of defining block code - like Panther which has different argument names.


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

Offline

 

#537 2011-04-22 15:41:31

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: ITopic: Welcome to your local block library!

sparks wrote:

We can add bingo blocks to the library, but unless they differ from the adding method of Scratch or Panther, they won't be added to a new section. For Bingo to have their own section the adding process would have to be specialist - like BYOB which uses existing blocks, or have different ways of defining block code - like Panther which has different argument names.

What section would blocks with the image inserter go in?


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#538 2011-04-22 15:43:25

spkshark
Scratcher
Registered: 2011-03-05
Posts: 65

Re: ITopic: Welcome to your local block library!

I love this library thing!  big_smile
http://scratch.mit.edu/static/icons/buddy/721837_med.png?t=2011-04-22+15%3A42%3A53


http://d2bm3ljpacyxu8.cloudfront.net/width/300/crop/0,0,300x145/spkshark.webs.com/scratch%20script.gif

Offline

 

#539 2011-04-22 15:58:12

spkshark
Scratcher
Registered: 2011-03-05
Posts: 65

Re: ITopic: Welcome to your local block library!

Please could I be a librarian??  smile
http://scratch.mit.edu/static/icons/buddy/721837_med.png?t=2011-04-22+15%3A58%3A55

Last edited by spkshark (2011-04-22 15:59:32)


http://d2bm3ljpacyxu8.cloudfront.net/width/300/crop/0,0,300x145/spkshark.webs.com/scratch%20script.gif

Offline

 

#540 2011-04-22 16:19:06

spkshark
Scratcher
Registered: 2011-03-05
Posts: 65

Re: ITopic: Welcome to your local block library!

I got a good one!
http://scratch.mit.edu/static/icons/buddy/721837_med.png?t=2011-04-22+16%3A17%3A30
big_smile  It Flags The Project On The Link!


http://d2bm3ljpacyxu8.cloudfront.net/width/300/crop/0,0,300x145/spkshark.webs.com/scratch%20script.gif

Offline

 

#541 2011-04-22 16:31:12

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

Re: ITopic: Welcome to your local block library!

@Librarians, I have a front-page project at the moment and the library is linked in the description. Hopefully it will attract some fresh traffic  smile


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

Offline

 

#542 2011-04-22 16:43:46

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: ITopic: Welcome to your local block library!

spkshark wrote:

I got a good one!
http://scratch.mit.edu/static/icons/bud … %3A17%3A30
big_smile  It Flags The Project On The Link!

You should post the code for this (if you know it.)


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#543 2011-04-22 18:46:56

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

Re: ITopic: Welcome to your local block library!

I've just found a load of Panther blocks lying around my computer in various folders and I use a lot of them a lot of the time, so you guys should have them too - extremely useful! Only problem is I can't remember which ones I coded and which ones were done by nXIII or Mathwizz with any certainty. I will attempt to credit them as I remember it, if they are miscredited I apologise, just remind me I got it wrong and I will change it!

http://welcometoyourlocalblocklibrary.weebly.com/uploads/7/1/1/0/7110842/8614952.gif [41]
http://welcometoyourlocalblocklibrary.weebly.com/uploads/7/1/1/0/7110842/151875.gif [42]
http://welcometoyourlocalblocklibrary.weebly.com/uploads/7/1/1/0/7110842/6253707.gif [43]
http://welcometoyourlocalblocklibrary.weebly.com/uploads/7/1/1/0/7110842/2626699.gif?426 [44]
http://welcometoyourlocalblocklibrary.weebly.com/uploads/7/1/1/0/7110842/3045448.gif?717 [45]
http://welcometoyourlocalblocklibrary.weebly.com/uploads/7/1/1/0/7110842/1303492.gif [46]
http://welcometoyourlocalblocklibrary.weebly.com/uploads/7/1/1/0/7110842/4100372.gif [47]
http://welcometoyourlocalblocklibrary.weebly.com/uploads/7/1/1/0/7110842/7400881.gif [48]
http://welcometoyourlocalblocklibrary.weebly.com/uploads/7/1/1/0/7110842/3919956.gif [49]
http://welcometoyourlocalblocklibrary.weebly.com/uploads/7/1/1/0/7110842/3991118.gif?343 [50]
http://welcometoyourlocalblocklibrary.weebly.com/uploads/7/1/1/0/7110842/3520402.gif [51]
http://welcometoyourlocalblocklibrary.weebly.com/uploads/7/1/1/0/7110842/2511239.gif [52]
http://welcometoyourlocalblocklibrary.weebly.com/uploads/7/1/1/0/7110842/9681398.gif [53]
http://welcometoyourlocalblocklibrary.weebly.com/uploads/7/1/1/0/7110842/4839356.gif [54]
http://welcometoyourlocalblocklibrary.weebly.com/uploads/7/1/1/0/7110842/265037.gif [55]

It's too late for me to add them to the library and the statistics now, I will do it tomorrow if noone else has by then, but they are downloadable now using the numbers supplied!

Last edited by sparks (2011-04-22 18:48:36)


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

Offline

 

#544 2011-04-22 19:31:07

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

Re: ITopic: Welcome to your local block library!

sparks wrote:

zorket wrote:

Quit scratch shared by Pecola1:

This block doesn't save your current progress if you are working on a project. I'm trying not to hurt Pecola1's feelings, but here is a code that asks if you want to save the project, first.

Code:

exitScratch
    | t1 |
    t1 _ self ownerThatIsA: ScratchFrameMorph.
    t1 quitScratch

If the original code did the same thing, sorry.

Well why don't we add both? We can have a "quit Scratch without saving" block and a "ask to save and quit Scratch" block  smile  They both have different uses and applications  wink

yes.


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

 

#545 2011-04-22 19:36:53

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

Re: ITopic: Welcome to your local block library!

ProgrammingFreak wrote:

Should we have a library for other features? I might make that...

I was thinking of this it could be called The Method Library It would be for adding special things like mesh, blocks which need coding in other places (like a instrument block I made), new block types and more!


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

 

#546 2011-04-22 19:38:09

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

Re: ITopic: Welcome to your local block library!

Hardmath123 wrote:

I think blocks should be grouped by type (reporter, boolean, stack, etc.), too.

I talked to sparks about that once and it would
1. take up too much space
and
2. take a long time to make!
also
3. take a long time to update!


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

 

#547 2011-04-22 20:34:47

floppy_gunk
Scratcher
Registered: 2008-11-14
Posts: 500+

Re: ITopic: Welcome to your local block library!

yikes

Panther can't run any custom block with text containing a quotation mark (including all variables containing text) as input. Please fix it!

Also, when a reporter block is dragged into a text input in a custom block and then dragged back out, the text input field turns into a number input field!

Last edited by floppy_gunk (2011-04-22 20:41:47)


http://img163.imageshack.us/img163/1917/2856lg.jpg Get it now!  smile

Offline

 

#548 2011-04-23 02:51:51

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

Re: ITopic: Welcome to your local block library!

floppy_gunk wrote:

yikes

Panther can't run any custom block with text containing a quotation mark (including all variables containing text) as input. Please fix it!

Also, when a reporter block is dragged into a text input in a custom block and then dragged back out, the text input field turns into a number input field!

Do you mean arguments containing a quotation mark? I'd not noticed that before, let me look into it. any reporters containing text fail to work with your blocks because of the glitch you afore mentioned with dragging out creates a number arg. To fix this, make sure that string arguments are dealt with like so in your code:

import image $String$
t1_ t1 asString.
self importMedia: t1

so you ensure that any reporters with text are still taken!

We are working on the custom block glitch in 1.1, I hope it will be out soon ¬_¬ but if any of you source-code messers find the source of the glitch and how to fix it before us, please do!


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

Offline

 

#549 2011-04-23 05:13:24

spkshark
Scratcher
Registered: 2011-03-05
Posts: 65

Re: ITopic: Welcome to your local block library!

Whats Mesh?


http://d2bm3ljpacyxu8.cloudfront.net/width/300/crop/0,0,300x145/spkshark.webs.com/scratch%20script.gif

Offline

 

#550 2011-04-23 05:26:53

spkshark
Scratcher
Registered: 2011-03-05
Posts: 65

Re: ITopic: Welcome to your local block library!

big_smile
http://scratch.mit.edu/static/icons/buddy/721837_med.png?t=2011-04-23+05%3A25%3A06
It's the same as http://scratch.mit.edu/static/icons/buddy/721837_med.png?t=2011-04-23+05%3A26%3A05
but you can carry on after.


http://d2bm3ljpacyxu8.cloudfront.net/width/300/crop/0,0,300x145/spkshark.webs.com/scratch%20script.gif

Offline

 

Board footer