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

#1 2013-04-03 13:02:08

Bowser_Jr
Scratcher
Registered: 2012-04-06
Posts: 100+

Need help!

So I was going to make a custom block but I forgot where to put the code in the scratch browser, I know how to open the browser, just don't know where to go next... thanks!


http://i1323.photobucket.com/albums/u591/ryan_hope1/e5e4c157-0449-4aae-ac37-a2cfaef18e90_zps1bd763f0.jpg

Offline

 

#2 2013-04-03 22:58:00

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Need help!

Block specs goes in Scratch-Objects > ScriptableScratchMorph > class > block specs > blockSpecs.
Block code goes in Scratch-Objects > ScriptableScratchMorph > instance > [category] ops.
If you want to make a block that only works for the stage, put the code in ScratchStageMorph instead of ScriptableScratchMorph. For sprite blocks, put it in ScratchSpriteMorph.


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#3 2013-04-04 05:06:29

Bowser_Jr
Scratcher
Registered: 2012-04-06
Posts: 100+

Re: Need help!

nathanprocks wrote:

Block specs goes in Scratch-Objects > ScriptableScratchMorph > class > block specs > blockSpecs.
Block code goes in Scratch-Objects > ScriptableScratchMorph > instance > [category] ops.
If you want to make a block that only works for the stage, put the code in ScratchStageMorph instead of ScriptableScratchMorph. For sprite blocks, put it in ScratchSpriteMorph.

Thanks! This really helped, I haven't moded scratch in a while. well here it goes!


http://i1323.photobucket.com/albums/u591/ryan_hope1/e5e4c157-0449-4aae-ac37-a2cfaef18e90_zps1bd763f0.jpg

Offline

 

Board footer