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

#1 2011-09-19 18:13:00

LordAwesome123
Scratcher
Registered: 2011-01-18
Posts: 100+

Need Help With Costome Blocks

I am trying to place costome blocks in the "looks" section but I cant find where to put the code! Help?


http://i672.photobucket.com/albums/vv82/coke457/cooltext538978807.png
When life gives you lemons... take them... free stuff is cool  smile

Offline

 

#2 2011-09-19 21:11:56

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Need Help With Costome Blocks

LordAwesome123 wrote:

I am trying to place costome blocks in the "looks" section but I cant find where to put the code! Help?

Well, if you're looking under ScriptableScratchMorph, you can't put looks blocks there.  Look under ScratchSpriteMorph's or ScratchStageMorph's blockspecs.  (Or just go there, right click the code, select find, and enter "looks").

Offline

 

#3 2011-09-19 21:42:30

LordAwesome123
Scratcher
Registered: 2011-01-18
Posts: 100+

Re: Need Help With Costome Blocks

Greenatic wrote:

LordAwesome123 wrote:

I am trying to place costome blocks in the "looks" section but I cant find where to put the code! Help?

Well, if you're looking under ScriptableScratchMorph, you can't put looks blocks there.  Look under ScratchSpriteMorph's or ScratchStageMorph's blockspecs.  (Or just go there, right click the code, select find, and enter "looks").

Ahhhhhh. The looks are in ScratchStageMorph's! Thanks!


http://i672.photobucket.com/albums/vv82/coke457/cooltext538978807.png
When life gives you lemons... take them... free stuff is cool  smile

Offline

 

#4 2011-09-20 03:17:56

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: Need Help With Costome Blocks

Well, the ScartchStageMorph section is only for the stage blocks, which means the block will only show in the stage scripts, and again, the ScratchSpriteMorph is only for sprites. If you want them in both, you will need to copy the blockspec into both of them, which would be really complicated. So insted, just insert the following code after the ")" and before the " )." in ScriptableScratchMorph:

Code:

 'looks' ('text' #type #method)

(Replace the false blockspec there * your ow blockspec). Then your code should look like this:

Code:

('%L contains %s' #b #list:contains: 'list' 'thing') 'looks' ('text' #type #method) ).

Hope this helps!


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#5 2011-10-02 15:51:40

Billybob-Mario
Scratcher
Registered: 2008-01-05
Posts: 500+

Re: Need Help With Costome Blocks

The easy way: base your mod on BYOB. At some point in it, say ^self form or whatever else it is.

The hard way: I don't know.

Offline

 

#6 2011-10-02 17:23:02

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: Need Help With Costome Blocks

Billybob-Mario wrote:

The easy way: base your mod on BYOB. At some point in it, say ^self form or whatever else it is.

The hard way: I don't know.

I think he was asking for something different.  tongue  But that's how Slash has the images... cool.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

Board footer