Yeah... i suck at custom blocks but i really want a block that can link to a website.
Any way to help me?
Offline
no clue, sorry
Last edited by TheBajeebas (2011-06-18 10:49:55)

Offline
TheSuccessor wrote:
Look in the Block Library!
I tried, but i cant figure out how to add the code.
Offline
pokemongardevoir wrote:
TheSuccessor wrote:
Look in the Block Library!
I tried, but i cant figure out how to add the code.
code goes in scratch-Objects->scratchSpriteMorph->(instance)sensing ops.
blockspecs go in scratch-Objects->scratchSpriteMorph->(class)blockSpecs->blockspecs
hope that helped!
Offline
jslomba wrote:
pokemongardevoir wrote:
TheSuccessor wrote:
Look in the Block Library!
I tried, but i cant figure out how to add the code.
code goes in scratch-Objects->scratchSpriteMorph->(instance)sensing ops.
blockspecs go in scratch-Objects->scratchSpriteMorph->(class)blockSpecs->blockspecs
hope that helped!
The thing is, when i go to scratchobjects-Scriptablescratchmorph, i don't have blockspecs!
Offline
pokemongardevoir wrote:
jslomba wrote:
pokemongardevoir wrote:
I tried, but i cant figure out how to add the code.
code goes in scratch-Objects->scratchSpriteMorph->(instance)sensing ops.
blockspecs go in scratch-Objects->scratchSpriteMorph->(class)blockSpecs->blockspecs
hope that helped!The thing is, when i go to scratchobjects-Scriptablescratchmorph, i don't have blockspecs!
oh, you must be using a older version of scratch. got to scratchobjects->Scriptablescratchmorph->Scratch->blockSpecs
if that isn't the case, make sure you click the button that says 'class' when you're there, and for code, click 'instance'
Last edited by jslomba (2011-06-18 11:32:34)
Offline
pokemongardevoir wrote:
TheSuccessor wrote:
Look in the Block Library!
I tried, but i cant figure out how to add the code.
Open scratch>>Hack it>>open browser>>scratch objects>>scriptable-scratch-morph>>class>>block specs>>block specs. Now type (block spec) under the category name you would like the block to be displayed in>>right-click>>accept (if the edges of the browser are red after clicking accept, it means there's something wrong with the blockspec or code). Now close/minimise the browser and go to the category you inserted the block spec into, and the block should be there! Now open/maximise the browser>>scratch-objects>>scriptable-scratch-morph>>(category)-ops and type in (block code).
(block spec) =
('open a browser with url %s' #- #openWebBrowserOn: 'http://')
(block code) =
openWebBrowserOn: t1
Cursor wait showWhile: [ScratchPlugin primOpenURL: t1]
Last edited by WindowsExplorer (2011-06-18 12:36:24)
Offline
jslomba wrote:
pokemongardevoir wrote:
jslomba wrote:
code goes in scratch-Objects->scratchSpriteMorph->(instance)sensing ops.
blockspecs go in scratch-Objects->scratchSpriteMorph->(class)blockSpecs->blockspecs
hope that helped!The thing is, when i go to scratchobjects-Scriptablescratchmorph, i don't have blockspecs!
oh, you must be using a older version of scratch. got to scratchobjects->Scriptablescratchmorph->Scratch->blockSpecs
if that isn't the case, make sure you click the button that says 'class' when you're there, and for code, click 'instance'
Dont have scratchobjects->Scriptablescratchmorph->Scratch either!
Offline
pokemongardevoir wrote:
jslomba wrote:
pokemongardevoir wrote:
The thing is, when i go to scratchobjects-Scriptablescratchmorph, i don't have blockspecs!oh, you must be using a older version of scratch. got to scratchobjects->Scriptablescratchmorph->Scratch->blockSpecs
if that isn't the case, make sure you click the button that says 'class' when you're there, and for code, click 'instance'Dont have scratchobjects->Scriptablescratchmorph->Scratch either!
Post a picture of what you do have, that might help them,
Offline
pokemongardevoir wrote:
jslomba wrote:
pokemongardevoir wrote:
The thing is, when i go to scratchobjects-Scriptablescratchmorph, i don't have blockspecs!oh, you must be using a older version of scratch. got to scratchobjects->Scriptablescratchmorph->Scratch->blockSpecs
if that isn't the case, make sure you click the button that says 'class' when you're there, and for code, click 'instance'Dont have scratchobjects->Scriptablescratchmorph->Scratch either!
Go to Scratch-Objects>>ScriptableScratchMorph>>CLICK CLASS UNDER SCRIPTABLESCRATCHMORPH>>block specs>> block specs
Offline
Don't forget to click the 'class' button under the second section!
Offline