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

#676 2010-12-13 12:39:07

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

Re: Welcome to the OLD local block library!

This is a grab screen for new sprite it has no code needed if you put it under ScratchStageMorph:

('grab screen region for new sprite' #- #grabSpriteFromScreen)

also

('save picture of stage...' #- #stageShot)

http://www.weebly.com/uploads/5/4/1/3/5413503/451394.png


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

 

#677 2010-12-13 12:46:48

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

Re: Welcome to the OLD local block library!

The next two do not need  code. First under ScriptableSpriteMorph block specs:

('grab a new costume from stage' #- #grabFromScreen)

next under ScriptableScratchMorph:

('grab a new costume from stage' #- #grabFromScreen)

http://www.weebly.com/uploads/5/4/1/3/5413503/8453616.png

Last edited by Pecola1 (2010-12-13 12:49:52)


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

 

#678 2010-12-13 13:06:32

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

Re: Welcome to the OLD local block library!

This is key pressed extra keys.
First go to ScriptableScratchMorph> instance> sensing ops> asciiFor:
add the strip:

Code:

'enter' localized = t2 ifTrue: [^ Character cr asciiValue].
    'shift' localized = t2 ifTrue: [^ 16].
    'control' localized = t2 ifTrue: [^ 17].
    'alt' localized = t2 ifTrue: [^ 18].
    'backspace' localized = t2 ifTrue: [^ 8].
    'escape' localized = t2 ifTrue: [^ 27].
    'f1' localized = t2 ifTrue: [^ 112].
    'f3' localized = t2 ifTrue: [^ 114].
    'f4' localized = t2 ifTrue: [^ 115].
    'f5' localized = t2 ifTrue: [^ 116].
    'f6' localized = t2 ifTrue: [^ 117].
    'f7' localized = t2 ifTrue: [^ 118].
    'f8' localized = t2 ifTrue: [^ 119].
    'f9' localized = t2 ifTrue: [^ 120].
    'f10' localized = t2 ifTrue: [^ 121].
    'f11' localized = t2 ifTrue: [^ 122].
    'f12' localized = t2 ifTrue: [^ 123].
'tab' localized = t2 ifTrue: [^ 9].

Then switch to keyNames:
add the strip

Code:

'shift' 'control' 'alt' 'backspace' 'escape' 'f1' 'f2' 'f3' 'f4' 'f5' 'f6' 'f7' 'f8' 'f9' 'f10' 'f11' 'f12' 'tab'

http://www.weebly.com/uploads/5/4/1/3/5413503/3966431.png
http://www.weebly.com/uploads/5/4/1/3/5413503/2435385.png

Last edited by Pecola1 (2010-12-13 14:13:14)


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

 

#679 2010-12-13 13:39:59

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

Re: Welcome to the OLD local block library!

New block

http://img691.imageshack.us/img691/3195/randomreorder.gif

Sent an email, meowmeow55

Last edited by SSBBM (2010-12-13 14:38:35)


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

Offline

 

#680 2010-12-13 14:15:45

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

Re: Welcome to the OLD local block library!

SSBBM wrote:

New block

http://img691.imageshack.us/img691/3195 … eorder.gif

Sent an email, meowmeow55

How do you make it?


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

 

#681 2010-12-13 14:38:06

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

Re: Welcome to the OLD local block library!

Pecola1 wrote:

How do you make it?

Click on the block and look at the scripts. If you need help making any block go here or here


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

Offline

 

#682 2010-12-13 15:12:15

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

Re: Welcome to the OLD local block library!

http://img254.imageshack.us/img254/8303/10456619.gif Shared by Hardmath123.
Don't you mean costume center? LOL XD

Last edited by Pecola1 (2010-12-13 15:12:48)


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

 

#683 2010-12-13 21:49:08

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

Re: Welcome to the OLD local block library!

Sparks, you never added this


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

Offline

 

#684 2010-12-14 04:13:19

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

Re: Welcome to the OLD local block library!

SSBBM, I'd love to add that tutorial, but before I do, please could you add to it so that people know how to upload an image of the blocks that make up their block and how to use the:

Code:

[url=link to block code][img]block image[/img][/url]

layout? Maybe think about adding a bit about downloadable blocks,

"A download of your block will be made avaliable for your block, usually within 48 hours. You are welcome to host a sprite containing your block using the tutorial url]here[/url"

(which I plan to make soon)


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

Offline

 

#685 2010-12-14 05:28:17

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

Re: Welcome to the OLD local block library!

http://dl.dropbox.com/u/6273449/BlockLibraryTitle2.png
^back to block sharing post

Uploading a block file to the library!

One of the Library's features is that each BYOB block can be viewed as a screenshot and downloaded too! Here's how you can send us your block in sprite format for the world to download:

Step 1
download this template sprite and open it in BYOB

Step 2
Once the sprite is open, replace the block called "Your custom block goes here" with the block you wish to submit, remembering to put the name of the person who made the block into the little comment bubble.

step 3
right click in the sprite and select "export this sprite". Save it somewhere memorable and put the name of the block as the name of the sprite.

Step 4
Upload the sprite to an online file hoster, google docs is an excellent choice for this, though you can use weebly, mediafire, dropbox or any other file hosting site you know of including your own website.

Step 5
Post the direct link here on this topic (direct means that if I click on it, my computer asks me if I want to start downloading it without me being taken to a new site (like the template sprite above)

Step 6
remember to post which block in the library your sprite belongs to, or post it at the same time as the block you're submitting.

you're done! The link will normally be copied to the block in the library within 48 hours!
http://dl.dropbox.com/u/6273449/BlockLibDiv2.png
^back to block sharing post

Last edited by sparks (2010-12-14 05:30:53)


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

Offline

 

#686 2010-12-14 11:18:33

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

Re: Welcome to the OLD local block library!

...

Last edited by sparks (2010-12-14 14:02:59)


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

Offline

 

#687 2010-12-14 11:34:13

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Welcome to the OLD local block library!

^Yay! But you forgot my <>=<> block [code].

Last edited by Hardmath123 (2010-12-14 11:35:45)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#688 2010-12-14 11:39:36

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Welcome to the OLD local block library!

ESN wrote:

The fraction of block!
[very long code edited out by me]
And you'll have your fraction of block!

How 'bout

Code:

('%n/%n of %n' #r #Fraction:by:of:)

Code:

Fraction: t1 by: t2 of: t3 
    ^ t1 / t2 * t3

?

Last edited by Hardmath123 (2010-12-14 11:58:38)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#689 2010-12-14 11:44:12

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

Re: Welcome to the OLD local block library!

Hardmath! It says UPDATE IN PROGRESS! I'm working my way through them! Could you shorten the above post again so people can see I've updated? Thanks  smile


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

Offline

 

#690 2010-12-14 11:49:36

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Welcome to the OLD local block library!

sparks wrote:

Other Updates:

@Zorket, I tried to make this block and I found it did not work.

Put the ^ 'a'. bit in brackets. Then it works!


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#691 2010-12-14 11:53:24

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

Re: Welcome to the OLD local block library!

Hardmath123 wrote:

sparks wrote:

Other Updates:

@Zorket, I tried to make this block and I found it did not work.

Put the ^ 'a'. bit in brackets. Then it works!

thanks!

t1 = 1 ifTrue: (^ 'a'.) is giving me an error saying

t1 = 1 ifTrue: (expression expected ->^ 'a'.)

Last edited by sparks (2010-12-14 11:56:16)


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

Offline

 

#692 2010-12-14 11:57:23

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Welcome to the OLD local block library!

sparks wrote:

Hardmath! It says UPDATE IN PROGRESS!

Does not!

But i'll shorten anyway  wink

EDIT I tried quoting it and it showed the UPDATE IN PROGRESS, but in a normal view it doesn't! Weird!

Last edited by Hardmath123 (2010-12-14 12:00:13)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#693 2010-12-14 12:11:53

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Welcome to the OLD local block library!

sparks wrote:

Hardmath123 wrote:

sparks wrote:

Other Updates:

@Zorket, I tried to make this block and I found it did not work.

Put the ^ 'a'. bit in brackets. Then it works!

thanks!

t1 = 1 ifTrue: (^ 'a'.) is giving me an error saying

t1 = 1 ifTrue: (expression expected ->^ 'a'.)

Try: t1 = 1 ifTrue: [^ 'a'].


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#694 2010-12-14 12:32:54

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

Re: Welcome to the OLD local block library!

thanks, that worked. Nearly finished!


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

Offline

 

#695 2010-12-14 13:58:45

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

Re: Welcome to the OLD local block library!

I just found out something you guys (and girls) if you want a block to have an error instaed of repotting ERROR likr

^ 'ERROR'

you can do

^ self Error

hope it helped!


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

 

#696 2010-12-14 14:04:07

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

Re: Welcome to the OLD local block library!

.                              http://img528.imageshack.us/img528/4416/66858359.gif


Scratch blocks added: [25]
http://img529.imageshack.us/img529/4018/86106671.gif Shared by Hardmath123
http://img692.imageshack.us/img692/4729/97179666.gif Shared by Pecola1
http://img823.imageshack.us/img823/9575/84837899.gif Shared by Pecola1
http://img210.imageshack.us/img210/236/96866724.gif Shared by Zorket
http://img5.imageshack.us/img5/8132/58261913.gif Shared by Zorket
http://img98.imageshack.us/img98/5135/45595913.gifShared by hardmath123
http://i52.tinypic.com/359bgb6.png Shared by ESN
http://img716.imageshack.us/img716/6149/21289069.gif Shared by Pecola1
http://img10.imageshack.us/img10/8629/iftouchingbounce.gif Shared by MathWizz
http://img26.imageshack.us/img26/5804/33864233.gif Shared by Pecola1
http://img64.imageshack.us/img64/7967/46630680.gif Shared by pecola1
http://img697.imageshack.us/img697/8903/37582851.gif Shared by pecola1
http://img339.imageshack.us/img339/6579/98858204.gif Shared by pecola1
http://img17.imageshack.us/img17/7144/94628597.gif (6 blocks) Shared by Pecola1
http://img8.imageshack.us/img8/8880/55500753.gif Shared by Jens Mönig
http://img694.imageshack.us/img694/1792/20050186.gif Shared by Pecola1
http://img571.imageshack.us/img571/7139/62960605.gif Shared by Pecola1
http://img839.imageshack.us/img839/1977/10058349.gif Shared by Pecola1
http://img651.imageshack.us/img651/6865/12327886.gif(2 blocks) Shared by Pecola1

Panther blocks added: [1]
http://img98.imageshack.us/img98/5135/45595913.gifConverted from Scratch to Panther by Sparks

BYOB blocks added: [5]
http://img413.imageshack.us/img413/659/negof.gif Shared by SSBBM
http://img641.imageshack.us/img641/5564/ascii.gif Shared by Pecola1
http://img64.imageshack.us/img64/2438/52431415.gif Shared by ScratchReallyROCKS
http://img842.imageshack.us/img842/2170/66190628.gif Shared by SSBBM
http://img691.imageshack.us/img691/3195/randomreorder.gif Shared by SSBBM

Block requests added: [0]

Other Updates:

I'm not adding Zorket or Hardmath's version of the "do nothing" block because... well, it does nothing.

@Pecola1: what do these blocks actually do?

Congratulations to Pecola1, the new top scratch blocks contributor with 20 blocks!

With 82 blocks, we now have more blocks in the scratch block section than anywhere else! BYOB comes second with 73 blocks and Panther only has 35


________________________________________________________________________________
^home
^updates archive

Last edited by sparks (2010-12-14 14:26:57)


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

Offline

 

#697 2010-12-14 14:05:22

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

Re: Welcome to the OLD local block library!

can't believe I'm done! That was a LOT. now I just have to add all that to the statistics page! Then I'm going to go eat something, I've been doing this for 2 hours.


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

Offline

 

#698 2010-12-14 14:18:01

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

Re: Welcome to the OLD local block library!

Good question sparks. The 'scene' blocks record the exact costume, direction, x position, ,y position of every sprite! Then when you use the 'set scene to' block it allows you to go to the scene you saved earlier! Use full for making tutorials. (but i guess since it doesn't work online, you cant use it for tutorials).

If you are talking about the h pan v pan blocks those move the stage! PS the h pan is x position and the v pan block is Y position but the thing about the v pan is it is the opposite of Y position, when you change the v pan by 1 it actually changes its y position by -1. PSS the 1 is true with any number.

Last edited by Pecola1 (2010-12-14 14:31:05)


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

 

#699 2010-12-14 14:27:49

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

Re: Welcome to the OLD local block library!

Congratulations to Pecola1, the new top scratch blocks contributor with 20 blocks!

With 82 blocks, we now have more blocks in the scratch block section than anywhere else! BYOB comes second with 73 blocks and Panther only has 35


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

Offline

 

#700 2010-12-14 14:35:03

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

Re: Welcome to the OLD local block library!

sparks wrote:

Congratulations to Pecola1, the new top scratch blocks contributor with 20 blocks!

With 82 blocks, we now have more blocks in the scratch block section than anywhere else! BYOB comes second with 73 blocks and Panther only has 35

Panther is lower because (besides the %this is the same as $this$ ) the panther blocks actually are scratch blocks unless they have a global variable not in scratch.

wait a second...  yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes  I am top block! NOT ZORKET!  yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes  etc.


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