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

#551 2010-06-05 11:26:34

HockeyPlayerJon
Scratcher
Registered: 2010-04-03
Posts: 6

Re: Cool custom blocks in Scratch

The Custom Blocks Don't Work!!!


cool  http://scratch.mit.edu/projects/HockeyPlayerJon/1055356
smile  <go to[ My Penguin Chat 3 Game! (LINK ABOVE)  smile  cool  !We NEED Scratch 4 DS!  cool

Offline

 

#552 2010-06-05 12:07:23

da123
Scratcher
Registered: 2010-01-15
Posts: 35

Re: Cool custom blocks in Scratch

HockeyPlayerJon wrote:

The Custom Blocks Don't Work!!!

http://scratch.mit.edu/forums/post.php?tid=34152&qid=410291

Uh, the majority of them do.
Some of them don't though........

Offline

 

#553 2010-06-05 14:32:16

Joeman592
Scratcher
Registered: 2010-01-23
Posts: 100+

Re: Cool custom blocks in Scratch

TheSuccessor wrote:

Jahava wrote:

Can these custom blocks be uploaded in projects?
Also, can you show me how to create the (sprite name) block?

(sprite name) block:
Add this to Scratch-Objects > ScratchSpriteMorph (click 'class' at this point) > BlockSpecs > BlockSpecs:

Code:

 ('sprite name' #r #spriteName)

Click 'instance' then sensing ops > hideQuestion.
Replace hideQuestion with spriteName and self with objName.
Right-click and click 'accept'.

also, there is ('sprite name' #r #objName)


http://i.imgur.com/HcAj1.png
http://i.imgur.com/gss7S.gifhttp://i.imgur.com/kbcKt.gifhttp://i.imgur.com/0LteM.gif

Offline

 

#554 2010-06-05 15:23:11

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Cool custom blocks in Scratch

Joeman592 wrote:

can anyone please make me black catagory pics(x, xover, xpressed)? if not can you tell me how to make them?

Why can't you make them  yourself?


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#555 2010-06-05 15:37:54

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Cool custom blocks in Scratch

How do you create a custom event handler (script starter)?


/* No comment */

Offline

 

#556 2010-06-05 15:54:25

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Cool custom blocks in Scratch

Code:

pointColor: t1
World activeHand showTemporaryCursor: ((Form extent: 5 @ 5 depth: 32) fillColor: t1)

Put this in a custom block spec with a color picker in it. You'll see it works, but when you use it in full screen (but not in normal) and click it makes nasty grey squares come up on the stage. Can anybody fix it?

Last edited by TheSuccessor (2010-06-05 15:55:21)


/* No comment */

Offline

 

#557 2010-06-05 18:09:04

Joeman592
Scratcher
Registered: 2010-01-23
Posts: 100+

Re: Cool custom blocks in Scratch

HAHA made em myself with sumopaint  big_smile  . Also, how do make the skin connect with my mod and how do you creaste another catagory? please? nXIII? LS97? please!

Last edited by Joeman592 (2010-06-05 18:09:15)


http://i.imgur.com/HcAj1.png
http://i.imgur.com/gss7S.gifhttp://i.imgur.com/kbcKt.gifhttp://i.imgur.com/0LteM.gif

Offline

 

#558 2010-06-05 18:15:34

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

Re: Cool custom blocks in Scratch

TheSuccessor wrote:

Code:

pointColor: t1
World activeHand showTemporaryCursor: ((Form extent: 5 @ 5 depth: 32) fillColor: t1)

Put this in a custom block spec with a color picker in it. You'll see it works, but when you use it in full screen (but not in normal) and click it makes nasty grey squares come up on the stage. Can anybody fix it?

Yes, the presenter detects damage done and limits redrawing to that area, the cursor may be messing that up; I also find that temporary cursors are deleted when clicking a ScratchPresenterMorph.


nXIII

Offline

 

#559 2010-06-05 18:27:31

Joeman592
Scratcher
Registered: 2010-01-23
Posts: 100+

Re: Cool custom blocks in Scratch

nXIII wrote:

TheSuccessor wrote:

Code:

pointColor: t1
World activeHand showTemporaryCursor: ((Form extent: 5 @ 5 depth: 32) fillColor: t1)

Put this in a custom block spec with a color picker in it. You'll see it works, but when you use it in full screen (but not in normal) and click it makes nasty grey squares come up on the stage. Can anybody fix it?

Yes, the presenter detects damage done and limits redrawing to that area, the cursor may be messing that up; I also find that temporary cursors are deleted when clicking a ScratchPresenterMorph.

what is this supposed to do
______________________________
type in [color=(put name lof color here(example: blue red green gold lime orange brown))]type text here[/color] and you'll have your color writing!


http://i.imgur.com/HcAj1.png
http://i.imgur.com/gss7S.gifhttp://i.imgur.com/kbcKt.gifhttp://i.imgur.com/0LteM.gif

Offline

 

#560 2010-06-05 18:49:13

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

Re: Cool custom blocks in Scratch

Joeman592 wrote:

nXIII wrote:

TheSuccessor wrote:

Code:

pointColor: t1
World activeHand showTemporaryCursor: ((Form extent: 5 @ 5 depth: 32) fillColor: t1)

Put this in a custom block spec with a color picker in it. You'll see it works, but when you use it in full screen (but not in normal) and click it makes nasty grey squares come up on the stage. Can anybody fix it?

Yes, the presenter detects damage done and limits redrawing to that area, the cursor may be messing that up; I also find that temporary cursors are deleted when clicking a ScratchPresenterMorph.

what is this supposed to do

make the cursor turn into a [insert color here] 5x5 square.


nXIII

Offline

 

#561 2010-06-05 19:31:38

Zorbak42
Scratcher
Registered: 2009-01-27
Posts: 100+

Re: Cool custom blocks in Scratch

Anyone know if it's possible to convert a project made with a mod of Scratch into a .exe and have the mod's extra blocks work? (and if so, how?) I haven't tried, but I assume Jens' Scratch2Exe doesn't work on projects made with mods?

Offline

 

#562 2010-06-05 20:00:54

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Cool custom blocks in Scratch

Zorbak42 wrote:

Anyone know if it's possible to convert a project made with a mod of Scratch into a .exe and have the mod's extra blocks work? (and if so, how?) I haven't tried, but I assume Jens' Scratch2Exe doesn't work on projects made with mods?

I actually think it might if it is a smalltalk compiler instead of a Scratch Compiler.


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#563 2010-06-05 22:02:02

Joeman592
Scratcher
Registered: 2010-01-23
Posts: 100+

Re: Cool custom blocks in Scratch

nXIII wrote:

Joeman592 wrote:

nXIII wrote:


Yes, the presenter detects damage done and limits redrawing to that area, the cursor may be messing that up; I also find that temporary cursors are deleted when clicking a ScratchPresenterMorph.

what is this supposed to do

make the cursor turn into a [insert color here] 5x5 square.

cool


http://i.imgur.com/HcAj1.png
http://i.imgur.com/gss7S.gifhttp://i.imgur.com/kbcKt.gifhttp://i.imgur.com/0LteM.gif

Offline

 

#564 2010-06-05 22:03:45

Joeman592
Scratcher
Registered: 2010-01-23
Posts: 100+

Re: Cool custom blocks in Scratch

another catagory tutorial please. just tell me how to get the skin to go on my mod, then how to make a new catagory. please?

Last edited by Joeman592 (2010-06-05 23:16:24)


http://i.imgur.com/HcAj1.png
http://i.imgur.com/gss7S.gifhttp://i.imgur.com/kbcKt.gifhttp://i.imgur.com/0LteM.gif

Offline

 

#565 2010-06-06 04:58:43

ribbledude
Scratcher
Registered: 2008-09-15
Posts: 7

Re: Cool custom blocks in Scratch

is there a way to take a screenshot picture?

Offline

 

#566 2010-06-06 09:33:39

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Cool custom blocks in Scratch

TheSuccessor wrote:

How do you create a custom event handler (script starter)?

Tell me, pleeeaaassseee.


/* No comment */

Offline

 

#567 2010-06-06 11:04:14

Joeman592
Scratcher
Registered: 2010-01-23
Posts: 100+

Re: Cool custom blocks in Scratch

TheSuccessor wrote:

TheSuccessor wrote:

How do you create a custom event handler (script starter)?

Tell me, pleeeaaassseee.

well... try something that broadcasts Scratch-StartClicked


http://i.imgur.com/HcAj1.png
http://i.imgur.com/gss7S.gifhttp://i.imgur.com/kbcKt.gifhttp://i.imgur.com/0LteM.gif

Offline

 

#568 2010-06-06 11:04:34

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Cool custom blocks in Scratch

To get a custom title when you open the system browser, choose:
Tools-Browser > Browser > (class) > instance creation > openBrowser.
Then it should be obvious.  smile

Last edited by TheSuccessor (2010-06-06 11:27:10)


/* No comment */

Offline

 

#569 2010-06-06 11:21:14

Joeman592
Scratcher
Registered: 2010-01-23
Posts: 100+

Re: Cool custom blocks in Scratch

Joeman592 wrote:

another catagory tutorial please. just tell me how to get the skin to go on my mod, then how to make a new catagory. please?

anyone?
please?
red blue green yellow orange purple lime brown grey silver gold white teal turquoise aqua pink chartreuse


http://i.imgur.com/HcAj1.png
http://i.imgur.com/gss7S.gifhttp://i.imgur.com/kbcKt.gifhttp://i.imgur.com/0LteM.gif

Offline

 

#570 2010-06-06 11:25:02

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Cool custom blocks in Scratch

Joeman592 wrote:

TheSuccessor wrote:

TheSuccessor wrote:

How do you create a custom event handler (script starter)?

Tell me, pleeeaaassseee.

well... try something that broadcasts Scratch-StartClicked

That's a green flag hack, but how can I do something new? Copy green flag smalltalk but change activation message?  hmm


/* No comment */

Offline

 

#571 2010-06-06 11:31:32

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Cool custom blocks in Scratch

How can you do the opposite of (ascii for []) i.e. (from ascii [])?  hmm


/* No comment */

Offline

 

#572 2010-06-06 12:28:52

Joeman592
Scratcher
Registered: 2010-01-23
Posts: 100+

Re: Cool custom blocks in Scratch

need a tutorial please. just need to know how to get my skin to hook up with my mod, then how to create a new catagory. Ive got everyting made. Please tell me
red blue green yellow orange purple lime brown grey silver gold white teal turquoise aqua pink chartreuse

Last edited by Joeman592 (2010-06-06 12:29:31)


http://i.imgur.com/HcAj1.png
http://i.imgur.com/gss7S.gifhttp://i.imgur.com/kbcKt.gifhttp://i.imgur.com/0LteM.gif

Offline

 

#573 2010-06-06 12:42:16

electrified123
Scratcher
Registered: 2009-11-22
Posts: 100+

Re: Cool custom blocks in Scratch

nXIII wrote:

OK, fine, here is the entire tutorial:
[replace (something) with your category name throughout this entire tutorial]
1. Add (something).gif, (something)Over.gif, and (something)Pressed.gif to the ScratchSkin folder IN THE ROOT DIRECTORY (wherever the VM is).
2. In the VM, open a new workspace (World menu -> open... -> workspace) and type

ScratchFrameMorph readSkinFrom: (FileDirectory default directoryNamed: 'ScratchSkin')

(if this doesn't work your ScratchSkin directory isn't in the right place or isn't named ScratchSkin)
3. Go to ScratchViewerMorph's rebuildCategorySelectors method and add (something) to the end of the small array definition (which looks like this:)

catList _ #(
        motion        control
        looks                sensing
        sound        operators
        pen            variables
        (something)).

Note: In order for the extent (size) of the category buttons to be correctly calculated, I have slightly modified the line that assigns to catButtonsExtent (the ugly arithmetic-looking one):

catButtonsExtent _ ((2 * maxExtent x) + (3 * pad)) @ ((((catList size / 2) rounded) * (maxExtent y + 6)) + 25).

How do i add a gif to it there is no option anywhere in that folder for that


http://i47.tinypic.com/5nrzmp.jpg check out my stuff ~ If You Really Thought i would think what you thought, than you must think i think what you thought i would think at the time you thought i was thinking what you thought

Offline

 

#574 2010-06-06 12:53:26

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Cool custom blocks in Scratch

TheSuccessor wrote:

How can you do the opposite of (ascii for []) i.e. (from ascii [])?  hmm

Important. xCubed 1.0.0 is nearly finished, and I want this block in it. Also, how do you publish your own version of Scratch?


/* No comment */

Offline

 

#575 2010-06-06 14:14:57

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Cool custom blocks in Scratch

nXIII wrote:

TheSuccessor wrote:

Code:

pointColor: t1
World activeHand showTemporaryCursor: ((Form extent: 5 @ 5 depth: 32) fillColor: t1)

Put this in a custom block spec with a color picker in it. You'll see it works, but when you use it in full screen (but not in normal) and click it makes nasty grey squares come up on the stage. Can anybody fix it?

Yes, the presenter detects damage done and limits redrawing to that area, the cursor may be messing that up; I also find that temporary cursors are deleted when clicking a ScratchPresenterMorph.

I found it works if you give the stage this script:

when stage clicked
set pointer color to [ ].

How would you code this into the method?


/* No comment */

Offline

 

Board footer