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

#1 2012-10-07 06:40:42

Martiscratch
Scratcher
Registered: 2012-05-04
Posts: 100+

how do I make a new block and put it in my mod?

I am making a mod (martiscript) and want to make a new block but I don't know were in the .image the blocks would go (I am using the system browser )  answers please!  smile


http://signaturecraft.us/signatures/eJw1yDEOgCAMBdC9p_gnICphdnA18QwoNZIAJRTD9Z184-uP74gKjxIvxi3tzaii3ZA-PjPijdgxvBpjcCYeeOtKW2Ou3OhIAbuUIOUvpdnNtDhH1tL0AQVCHgk~.png

Offline

 

#2 2012-10-07 09:30:03

ComputerProgrammer
Scratcher
Registered: 2008-08-25
Posts: 100+

Re: how do I make a new block and put it in my mod?

If the block is for sprites only, the blockspec would go in Scratch-Objects >> ScratchSpriteMorph class >> block specs >> blockSpecs , and the code would go in Scratch-Objects >> ScratchSpriteMorph instance >> (category of your block) ops

If the block is for the stage only, the blockspec would go in Scratch-Objects >> ScratchStageMorph class >> block specs >> blockSpecs , and the code would go in Scratch-Objects >> ScratchStageMorph instance >> (category of your block) ops

If the block is for both sprites and the stage, the blockspec would go in Scratch-Objects >> ScriptableScratchMorph class >> block specs >> blockSpecs , and the code would go in Scratch-Objects >> ScriptableScratchMorph instance >> (category of your block) ops


What do scratch blocks and oak trees have in common? Click here to find out!

Offline

 

#3 2012-10-07 13:58:39

Saca312
Scratcher
Registered: 2011-03-24
Posts: 100+

Re: how do I make a new block and put it in my mod?

Click here to find the answer Well basically most of the top search answers are right


http://i.imgur.com/AeIvr.png

Offline

 

#4 2012-10-08 11:27:57

Martiscratch
Scratcher
Registered: 2012-05-04
Posts: 100+

Re: how do I make a new block and put it in my mod?

ComputerProgrammer wrote:

If the block is for sprites only, the blockspec would go in Scratch-Objects >> ScratchSpriteMorph class >> block specs >> blockSpecs , and the code would go in Scratch-Objects >> ScratchSpriteMorph instance >> (category of your block) ops

If the block is for the stage only, the blockspec would go in Scratch-Objects >> ScratchStageMorph class >> block specs >> blockSpecs , and the code would go in Scratch-Objects >> ScratchStageMorph instance >> (category of your block) ops

If the block is for both sprites and the stage, the blockspec would go in Scratch-Objects >> ScriptableScratchMorph class >> block specs >> blockSpecs , and the code would go in Scratch-Objects >> ScriptableScratchMorph instance >> (category of your block) ops

Thank you!


http://signaturecraft.us/signatures/eJw1yDEOgCAMBdC9p_gnICphdnA18QwoNZIAJRTD9Z184-uP74gKjxIvxi3tzaii3ZA-PjPijdgxvBpjcCYeeOtKW2Ou3OhIAbuUIOUvpdnNtDhH1tL0AQVCHgk~.png

Offline

 

#5 2012-10-08 11:43:09

transparent
Scratcher
Registered: 2011-04-19
Posts: 1000+

Re: how do I make a new block and put it in my mod?

Did that work for you?


yes, yes i do.

Offline

 

#6 2012-10-08 11:59:48

Martiscratch
Scratcher
Registered: 2012-05-04
Posts: 100+

Re: how do I make a new block and put it in my mod?

transparent wrote:

Did that work for you?

no.
There is not a block specs folder in scriptablescratchmorph.


http://signaturecraft.us/signatures/eJw1yDEOgCAMBdC9p_gnICphdnA18QwoNZIAJRTD9Z184-uP74gKjxIvxi3tzaii3ZA-PjPijdgxvBpjcCYeeOtKW2Ou3OhIAbuUIOUvpdnNtDhH1tL0AQVCHgk~.png

Offline

 

#7 2012-10-08 12:11:47

Martiscratch
Scratcher
Registered: 2012-05-04
Posts: 100+

Re: how do I make a new block and put it in my mod?

I have gave up.
It seems on Linux the .image is different...


http://signaturecraft.us/signatures/eJw1yDEOgCAMBdC9p_gnICphdnA18QwoNZIAJRTD9Z184-uP74gKjxIvxi3tzaii3ZA-PjPijdgxvBpjcCYeeOtKW2Ou3OhIAbuUIOUvpdnNtDhH1tL0AQVCHgk~.png

Offline

 

#8 2012-10-08 12:59:33

transparent
Scratcher
Registered: 2011-04-19
Posts: 1000+

Re: how do I make a new block and put it in my mod?

I've never used it on the linux system, so I don't think I can help you.  hmm


yes, yes i do.

Offline

 

#9 2012-10-08 13:19:00

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: how do I make a new block and put it in my mod?

"block specs" is a class method category; to navigate there you would click the class category "Scratch-Objects," the class "ScriptableScratchMorph," the class methods button, the category "block specs," and finally the method selector "blockSpecs." You can also search for a method selector by entering it in a text field, selecting it, right-clicking, and selecting "more…," then "selectors containing it (W)."

Last edited by nXIII (2012-10-08 13:20:52)


nXIII

Offline

 

#10 2012-10-08 15:14:18

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: how do I make a new block and put it in my mod?

Martiscratch wrote:

transparent wrote:

Did that work for you?

no.
There is not a block specs folder in scriptablescratchmorph.

Press the class button right under the box with ScriptableScratchMorph


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#11 2012-10-08 15:51:26

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: how do I make a new block and put it in my mod?

Closed by request of topic owner.


http://i.imgur.com/WBkM2QQ.png

Offline

 

Board footer