rookwood101 wrote:
sparks wrote:
Yes, I was quite happily working on that site, but there have been huge issues with SQL database storage that no one seems to be able to fix. I'm currently working on a website for my uni course too, so it's taken a bit of a back seat, sorry
I've set some things up, and I'm willing to host the block library for you. I'll have the ip for it set up soon (you'll have a seperate one to the rest of the server.) and I'll send you the details so you can have a play around and notify me of anything before commiting to use it.
I don't think hosting the site was the problem.
Offline
I have a block, but I made it in Snap, which doesn't have it. It's a rounding block for rounding a value, but Scratch and BYOB have it. Can I still share it?
Offline
LiquidMetal wrote:
rookwood101 wrote:
sparks wrote:
Yes, I was quite happily working on that site, but there have been huge issues with SQL database storage that no one seems to be able to fix. I'm currently working on a website for my uni course too, so it's taken a bit of a back seat, sorry
I've set some things up, and I'm willing to host the block library for you. I'll have the ip for it set up soon (you'll have a seperate one to the rest of the server.) and I'll send you the details so you can have a play around and notify me of anything before commiting to use it.
I don't think hosting the site was the problem.
Yes, but my mysql works, would you like to use my mysql DB?
Last edited by rookwood101 (2012-03-08 10:40:35)
Offline
My bounce block: (untested)
Made in Scramble
('bounce' #- #bnce)
bnce "Made with Scramble by Hardmath123" self turnRight: 180.
My repeat while block: (tested)
Inspired by the BYOB version
Made in Squeak
('repeat while %b' #c #doWhile)
Code in Scratch-Execution Engine/ScratchProcess/private-special forms
doWhile: t1 | t2 t3 | t3 _ stackFrame expression. t2 _ stackFrame arguments. t2 size < 1 ifTrue: [^ self evaluateNextArgument]. t2 first = t1 = false ifTrue: [^ self popStackFrame]. self popStackFrameNoUnhightlight. self pushStackFrame: (ScratchStackFrame new expression: t3). self isAtomic ifFalse: [self pushStackFrame: (ScratchStackFrame new shouldYield: true)]. self pushStackFrame: (ScratchStackFrame new expression: t3 firstBlockList)
More code in same location/Don't add this code if this was automatically created
doWhile ^ self doWhile: true
Last edited by rdococ (2012-03-10 13:30:48)
Offline
rdococ wrote:
My bounce block: (untested)
Made in ScrambleCode:
('bounce' #- #bnce)Code:
bnce "Made with Scramble by Hardmath123" self turnRight: 180.My repeat while block: (tested)
Inspired by the BYOB version
Made in Squeak('repeat while %b' #c #doWhile)
Code in Scratch-Execution Engine/ScratchProcess/private-special forms
Code:
doWhile: t1 | t2 t3 | t3 _ stackFrame expression. t2 _ stackFrame arguments. t2 size < 1 ifTrue: [^ self evaluateNextArgument]. t2 first = t1 = false ifTrue: [^ self popStackFrame]. self popStackFrameNoUnhightlight. self pushStackFrame: (ScratchStackFrame new expression: t3). self isAtomic ifFalse: [self pushStackFrame: (ScratchStackFrame new shouldYield: true)]. self pushStackFrame: (ScratchStackFrame new expression: t3 firstBlockList)More code in same location/Don't add this code if this was automatically created
Code:
doWhile ^ self doWhile: true
Check the library before posting... I posted the do while block already.
Also all you need is the blockspec...
As for bounce i don't know if that will be done.
I think ppl have tried to enter it... and i think it was either entered or it was tossed aside. (Norlly?)
Offline
Pecola1 wrote:
rdococ wrote:
My bounce block: (untested)
Made in ScrambleCode:
('bounce' #- #bnce)Code:
bnce "Made with Scramble by Hardmath123" self turnRight: 180.My repeat while block: (tested)
Inspired by the BYOB version
Made in Squeak('repeat while %b' #c #doWhile)
Code in Scratch-Execution Engine/ScratchProcess/private-special forms
Code:
doWhile: t1 | t2 t3 | t3 _ stackFrame expression. t2 _ stackFrame arguments. t2 size < 1 ifTrue: [^ self evaluateNextArgument]. t2 first = t1 = false ifTrue: [^ self popStackFrame]. self popStackFrameNoUnhightlight. self pushStackFrame: (ScratchStackFrame new expression: t3). self isAtomic ifFalse: [self pushStackFrame: (ScratchStackFrame new shouldYield: true)]. self pushStackFrame: (ScratchStackFrame new expression: t3 firstBlockList)More code in same location/Don't add this code if this was automatically created
Code:
doWhile ^ self doWhile: trueCheck the library before posting... I posted the do while block already.
Also all you need is the blockspec...
As for bounce i don't know if that will be done.
I think ppl have tried to enter it... and i think it was either entered or it was tossed aside. (Norlly?)
Oops.
I'll try to make a C block sooner or later...
Offline
Scratch Block
saveImageForEndUser | t1 | t1 _ self ownerThatIsA: ScratchFrameMorph. t1 saveImageForEndUser
blockspec wrote:
('Save image for End User' #- #saveImageForEndUser)
This goes in control, its blue cuz It's from my mod
Last edited by funelephant (2012-03-11 08:54:39)
Offline
I think there should be a
<mouse-pointer is touching colour [ ]?>
block.
Just a thought
Last edited by RedRocker227 (2012-03-17 12:10:43)
Offline
ani888 wrote:
look at this block
warn [This script is simple!]the block spec is
('warn %s' #- #warn:)
and the code is
warn: t1
DialogBoxMorph warn: t1.
that block is already there.
Last edited by jslomba (2012-03-17 16:20:41)
Offline
RedRocker227 wrote:
I think there should be a
<mouse-pointer is touching colour [ ]?>
block.
Just a thought
Pretty simple in Panther. A script that would do it would be this:
< (|color at x: ( ) y: ( )| as string) = ( |color here| as string) >
Last edited by Greenatic (2012-03-17 18:48:09)
Offline
blockspec wrote:
('letter %s as number' #r #letterasnum:)
letterasnum: t1 t1 = 'a' ifTrue: [^ '1']. t1 = 'b' ifTrue: [^ '2']. t1 = 'c' ifTrue: [^ '3']. t1 = 'd' ifTrue: [^ '4']. t1 = 'e' ifTrue: [^ '5']. t1 = 'f' ifTrue: [^ '6']. t1 = 'g' ifTrue: [^ '7']. t1 = 'h' ifTrue: [^ '8']. t1 = 'i' ifTrue: [^ '9']. t1 = 'j' ifTrue: [^ '10']. t1 = 'k' ifTrue: [^ '11']. t1 = 'l' ifTrue: [^ '12']. t1 = 'm' ifTrue: [^ '13']. t1 = 'n' ifTrue: [^ '14']. t1 = 'o' ifTrue: [^ '15']. t1 = 'p' ifTrue: [^ '16']. t1 = 'q' ifTrue: [^ '17']. t1 = 'r' ifTrue: [^ '18']. t1 = 's' ifTrue: [^ '19']. t1 = 't' ifTrue: [^ '20']. t1 = 'u' ifTrue: [^ '21']. t1 = 'v' ifTrue: [^ '22']. t1 = 'w' ifTrue: [^ '23']. t1 = 'x' ifTrue: [^ '24']. t1 = 'y' ifTrue: [^ '25']. t1 = 'z' ifTrue: [^ '26']. ^ self error
Based off of Zorket's block,
Offline
I have 3 panther blocks...
Name:
$number$ out of $number$ as %
Type:
r
Code:
t1/t2*100
This block is already in Panther, but you can't drag reporter blocks in a "$Keys$ slot". Although this could be achieved with <(key pressed) = []>.
Name:
key $String$ pressed?
Type:
b
Code:
self keyPressed: t1
I discovered this when dragging the (key pressed) block into the above block
Name:
any button pressed?
Type:
b
Code:
self keyPressed: self keyPressed
Last edited by Splodgey (2012-04-10 14:41:15)
Offline
Today, the block I'm going to make is recursive!
It calls itself with some inputs if the variable N is more than the variable varcheck, otherwise it reports the value variable.
Wait a minute! The images below there are messed up by Imageshack. It thinks the image is another image!
Hey! I got the correct image of the above block!
If you want to see the project, go on DropBox and join the shared folder 'Recursive Over' without single quotes.
Last edited by rdococ (2012-03-22 15:07:34)
Offline
Man I'm so sorry I've not been very active! I have four more pieces of coursework to hand in at uni between now and the 4th of April but I PROMISE that in the long easter holidays that follow I'll go through and do a proper update, Panther blocks and all!
Offline
rdococ wrote:
Today, the block I'm going to make is recursive!
It calls itself with some inputs if the variable N is more than the variable varcheck, otherwise it reports the value variable.
Wait a minute! The images below there are messed up by Imageshack. It thinks the image is another image!
http://img841.imageshack.us/img841/4774 … rlabel.gif
http://img689.imageshack.us/img689/5568 … veover.gif
Hey! I got the correct image of the above block!
If you want to see the project, go on DropBox and join the shared folder 'Recursive Over' without single quotes.
Ah, thanks. Don't have time to try that right now...
Offline
block spec:
('replace all %s with %s in %s' #r #replaceAll:with:in:'bl' 'h' 'blue')
code: ScriptableScratchMorph
replaceAll: t1 with: t2 in: t3 ^ t3 asString copyReplaceAll: t1 with: t2
By Dreamod.
This block replaces all of a string with another string in a string.
Offline
Hey Localblocklib. I am going to be creating a post next week called The Scratch University. In my post I was going to show a successful post that someone created. Would you mind if I used your thread and showed a few blocks.
Thanks
-joletole
Offline
sparks wrote:
Do you mean a successful thread then? And yes, go for it, send us a link!
Thanks!
And each of the blocks I use, I will give credit to the person who made that block.
Offline
Shared by SSSS
Blockspec:
('Import theme %s') #- #themepacks:)
Code:
themepacks: t1
ScratchFrameMorph readSkinFrom: (FileDirectory default directoryNamed: t1)
What this block does:
You download the ScratchSkin, edit it, then you can use this block to import the skin during a project.
THIS DOES NOT WORK!!!
Last edited by Squawkers13 (2012-03-25 18:23:46)
Offline
Also, one more thing. I want to add a block. I am still confused on how to make the block, so could you change it so it looks like a sound block. Here is the block:
stop sound [meow v] for (1) secWhat this block does:
Last edited by joletole (2012-03-26 17:09:24)
Offline
joletole wrote:
Also, one more thing. I want to add a block. I am still confused on how to make the block, so could you change it so it looks like a sound block. Here is the block:
stop sound [meow v] for (1) secWhat this block does:
It stops the sound for 1 seconds. Then, after the 1 second, starts playing the song again.
Do you have code for it? Or are you requesting it? (Also, making it pink like a sound block requires images.)
If you want us to code it: when it starts playing again, should it restart or pick up where it left off?
Offline
Greenatic wrote:
joletole wrote:
Also, one more thing. I want to add a block. I am still confused on how to make the block, so could you change it so it looks like a sound block. Here is the block:
stop sound [meow v] for (1) secWhat this block does:
It stops the sound for 1 seconds. Then, after the 1 second, starts playing the song again.Do you have code for it? Or are you requesting it? (Also, making it pink like a sound block requires images.)
If you want us to code it: when it starts playing again, should it restart or pick up where it left off?
Could you code it, I am very bad at coding. And it would pick up where it left off.
Offline