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

#1 2010-10-26 05:14:59

Daffy22
Scratcher
Registered: 2008-12-15
Posts: 500+

Making a hat block?

Okay, I want to make a hat block that basicaly clears a file and sets a global variable. I've managed to make a standard stack block do this easily but I want to turn it into a hat block with custom text ect. How do I do this?

EDIT: it's also got to have a drop down menu.  smile

Last edited by Daffy22 (2010-10-26 05:18:09)


http://img201.imageshack.us/img201/1784/logosmalle.png
"Spectacular - 5 Star" -  CNET.com Editor.

Offline

 

#2 2010-10-26 06:56:52

Daffy22
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: Making a hat block?

bump!  sad


http://img201.imageshack.us/img201/1784/logosmalle.png
"Spectacular - 5 Star" -  CNET.com Editor.

Offline

 

#3 2010-10-26 07:47:47

Daffy22
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: Making a hat block?

bump! bump! bump!!!!!  mad


http://img201.imageshack.us/img201/1784/logosmalle.png
"Spectacular - 5 Star" -  CNET.com Editor.

Offline

 

#4 2010-10-26 08:10:40

Daffy22
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: Making a hat block?

bump! :cry:


http://img201.imageshack.us/img201/1784/logosmalle.png
"Spectacular - 5 Star" -  CNET.com Editor.

Offline

 

#5 2010-10-27 11:29:33

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Making a hat block?

I don't know the answer to this question, but here's a picture of the contents of my mind when someone says "hat block" to cheer you up!
http://img688.imageshack.us/img688/6582/51228086.png

on a more serious note, Daffy, I FINALLY have time to do the graphics you asked me for ages ago! do you still need it?

Last edited by sparks (2010-10-27 11:30:27)


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#6 2010-10-27 12:09:51

Daffy22
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: Making a hat block?

sparks wrote:

I don't know the answer to this question, but here's a picture of the contents of my mind when someone says "hat block" to cheer you up!
http://img688.imageshack.us/img688/6582/51228086.png

on a more serious note, Daffy, I FINALLY have time to do the graphics you asked me for ages ago! do you still need it?

well, not at the momment however I may need it at a future date so I'll let you know, thanks anyway though.  smile


http://img201.imageshack.us/img201/1784/logosmalle.png
"Spectacular - 5 Star" -  CNET.com Editor.

Offline

 

#7 2010-10-27 15:01:03

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

Re: Making a hat block?

Create a subclass of HatBlockMorph.


/* No comment */

Offline

 

#8 2010-10-30 16:48:14

stickdude123
Scratcher
Registered: 2010-05-31
Posts: 100+

Re: Making a hat block?

first off...WHATS A HAT BLOCK!?!?!?!? and i wanted a global variable  big_smile


http://internetometer.com/imagesmall/34259.png http://www.mediafire.com/convkey/418e/lkb7wmv2n2k73rz5g.jpg         http://blocks.scratchr.org/API.php?user=stickdude123&action=onlineStatus&type=square

Offline

 

#9 2011-03-18 17:30:41

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: Making a hat block?

This is a hat block:

[blocks]
<when green flag clicked>
[/blocks]


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#10 2011-03-18 21:19:59

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

Re: Making a hat block?

sparks wrote:

I don't know the answer to this question, but here's a picture of the contents of my mind when someone says "hat block" to cheer you up!
http://img688.imageshack.us/img688/6582/51228086.png

on a more serious note, Daffy, I FINALLY have time to do the graphics you asked me for ages ago! do you still need it?

LOL! I found out how to see image shack photos, copy the link for the pic, then put it on weebly thus I get:
http://www.weebly.com/uploads/5/4/1/3/5413503/532740488.png
WEEBLY ROCKS! As for the hat block question, I have tried many times but failed, I tried a forever hat block, when stop clicked. Everything turned out as a regular old, oh whats it called the block type is -? Command Block!


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

 

#11 2011-05-08 16:29:44

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: Making a hat block?

I'm trying to figure out how to make a working 'when <> is true' hat block.


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#12 2011-05-08 17:39:44

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Offline

 

#13 2011-05-08 18:59:46

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: Making a hat block?

No idea  sad  D:


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#14 2011-05-09 11:35:49

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Making a hat block?

To mimic hat blocks, couldn't you code a C-block that cannot be snapped onto other blocks and is a type of if? It can start even if the green flag is not clicked, etc.

Offline

 

#15 2012-04-01 17:44:11

ani888
New Scratcher
Registered: 2012-03-17
Posts: 4

Re: Making a hat block?

go to Scratch-Objects>ScriptableScratchMorph>instance>--all-->blockFromSpec: spec color: blockColor and Scratch-Objects>ScriptableScratchMorph>instance>--all-->blockFromTuple: tuple receiver: scriptOwner and change stuff there

Offline

 

#16 2012-04-02 08:35:49

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Making a hat block?

Necropost. ^^


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

Board footer