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)
Offline
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)
Last edited by Pecola1 (2010-12-13 12:49:52)
Offline
This is key pressed extra keys.
First go to ScriptableScratchMorph> instance> sensing ops> asciiFor:
add the strip:
'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
'shift' 'control' 'alt' 'backspace' 'escape' 'f1' 'f2' 'f3' 'f4' 'f5' 'f6' 'f7' 'f8' 'f9' 'f10' 'f11' 'f12' 'tab'
Last edited by Pecola1 (2010-12-13 14:13:14)
Offline
SSBBM wrote:
New block
http://img691.imageshack.us/img691/3195 … eorder.gif
Sent an email, meowmeow55
How do you make it?
Offline
Shared by Hardmath123.
Don't you mean costume center? LOL XD
Last edited by Pecola1 (2010-12-13 15:12:48)
Offline
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:
[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)
Offline
^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!
^back to block sharing post
Last edited by sparks (2010-12-14 05:30:53)
Offline
^Yay! But you forgot my <>=<> block [code].
Last edited by Hardmath123 (2010-12-14 11:35:45)
Offline
ESN wrote:
The fraction of block!
[very long code edited out by me]
And you'll have your fraction of block!
How 'bout
('%n/%n of %n' #r #Fraction:by:of:)
Fraction: t1 by: t2 of: t3 ^ t1 / t2 * t3
?
Last edited by Hardmath123 (2010-12-14 11:58:38)
Offline
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!
Offline
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)
Offline
sparks wrote:
Hardmath! It says UPDATE IN PROGRESS!
Does not!
But i'll shorten anyway
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)
Offline
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'].
Offline
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!
Offline
.
Scratch blocks added: [25]
Shared by Hardmath123
Shared by Pecola1
Shared by Pecola1
Shared by Zorket
Shared by Zorket
Shared by hardmath123
Shared by ESN
Shared by Pecola1
Shared by MathWizz
Shared by Pecola1
Shared by pecola1
Shared by pecola1
Shared by pecola1
(6 blocks) Shared by Pecola1
Shared by Jens Mönig
Shared by Pecola1
Shared by Pecola1
Shared by Pecola1
(2 blocks) Shared by Pecola1
Panther blocks added: [1]
Converted from Scratch to Panther by Sparks
BYOB blocks added: [5]
Shared by SSBBM
Shared by Pecola1
Shared by ScratchReallyROCKS
Shared by SSBBM
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)
Offline
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)
Offline
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
Offline
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... I am top block! NOT ZORKET! etc.
Offline