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

#1 2010-04-28 07:35:11

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Add Your Block Code Here!

Have Any Hacked Blocks You Want To Share With Everyone Else? Well Here Is The Place Be Then! Post All Of Your Block Code Here!  big_smile

Here Is The Block Code Posted So Far:

Code:

By: TheGameMaster1231
What It Does: It Reports If The Sprite Is Hidden Or Not.
Code: ('hidden?' #b #isHidden)
Other Notes: No Other Notes.

Code:

By meew0
What it does: squeak error
Code (block specs):
'error with message %s' #- #errorMessage: 'an error')
Code (other ops):
errorMessage: t1
 self error: t1
Other Notes: Works only if error catching is off!

Now Post Your Own Block Code!

*Note* I Need This Block Code For My New Mod. So Please Try To Post Blocks You Have Made Without Tutorials Or Anything. Thank You.  smile

Last edited by TheGameMaster1231 (2010-04-28 16:58:45)

Offline

 

#2 2010-04-28 08:07:22

meew0
Scratcher
Registered: 2010-02-22
Posts: 1000+

Re: Add Your Block Code Here!

By meew0
What it does: squeak error
Code (block specs):

Code:

('error with message %s' #- #errorMessage: 'an error')

Code (other ops):

Code:

errorMessage: t1
 self error: t1

Notes: Works only if error catching is off!


http://i.imgur.com/mJV3j.pnghttp://i.imgur.com/HwWAX.pnghttp://i.imgur.com/sZ7Ui.pnghttp://i.imgur.com/0y6yh.pnghttp://i.imgur.com/nOC4l.png

Offline

 

#3 2010-04-28 08:08:05

abootflock
Scratcher
Registered: 2010-02-20
Posts: 21

Re: Add Your Block Code Here!

('any key pressed?') ALl of the KEY PRESSEd codes would be put in

Offline

 

#4 2010-04-28 10:58:24

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Add Your Block Code Here!

I made this topic before link here
http://scratch.mit.edu/forums/viewtopic.php?id=33653


You can now reach me on Twitter @johnnydean1_

Offline

 

#5 2010-04-28 16:15:27

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

Re: Add Your Block Code Here!

by: electrified123

SPRITEMORPH code:  attachSprite: t1
self addMorph: t1





blockspec: ('attach%m' #- #attachSprite:)

makes the sprite attach to the selected sprite, useful huh,


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

 

#6 2010-04-28 16:59:57

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Re: Add Your Block Code Here!

electrified123 wrote:

by: electrified123

SPRITEMORPH code:  attachSprite: t1
self addMorph: t1





blockspec: ('attach%m' #- #attachSprite:)

makes the sprite attach to the selected sprite, useful huh,

It Didn't Work For Me. Are You Sure It Works? And Are You Sure That's The Right Code?

Oh Wait, It Works, But It Doesn't Attach When You Use A [go to x: () y: ()] Or Anything Like That. It Does, However, Attach When You're Dragging One Of Them.

Last edited by TheGameMaster1231 (2010-04-28 17:03:42)

Offline

 

#7 2010-04-28 17:03:22

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Add Your Block Code Here!

Yes they have to be ontop of each other


You can now reach me on Twitter @johnnydean1_

Offline

 

#8 2010-04-28 17:08:10

BWOG
Scratcher
Registered: 2008-09-19
Posts: 1000+

Re: Add Your Block Code Here!

Why Do You Talk Like This, huh?

Offline

 

#9 2010-04-28 17:19:36

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Add Your Block Code Here!

As he probably had caps lock on


You can now reach me on Twitter @johnnydean1_

Offline

 

#10 2010-04-28 18:14:54

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Re: Add Your Block Code Here!

BWOG wrote:

Why Do You Talk Like This, huh?

ARG!!!!!! CAN ANYONE JUST GIVE ME A BREAK!?!?!? Ugh... Sorry About That... I Do It Because It's A Habit Of Mine... Geesh... (And No I Don't Have My Caps-Lock On.)

Offline

 

#11 2010-04-29 18:23:04

abootflock
Scratcher
Registered: 2010-02-20
Posts: 21

Re: Add Your Block Code Here!

I'll Make a version of scratch with all of these.

Offline

 

#12 2010-04-29 19:43:29

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

Re: Add Your Block Code Here!

abootflock wrote:

I'll Make a version of scratch with all of these.

*AHEM* that's not a very original idea, is it now?


nXIII

Offline

 

#13 2010-04-29 19:45:16

BWOG
Scratcher
Registered: 2008-09-19
Posts: 1000+

Re: Add Your Block Code Here!

TheGameMaster1231 wrote:

BWOG wrote:

Why Do You Talk Like This, huh?

ARG!!!!!! CAN ANYONE JUST GIVE ME A BREAK!?!?!? Ugh... Sorry About That... I Do It Because It's A Habit Of Mine... Geesh... (And No I Don't Have My Caps-Lock On.)

I can't stand doing it for one post. Besides, you can type faster with both hands  tongue

Offline

 

#14 2010-05-01 11:01:31

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Re: Add Your Block Code Here!

Anyone Have Some Block Code? Anyone?  hmm

Offline

 

#15 2010-05-01 12:54:59

poppypaynterscratch
Scratcher
Registered: 2009-09-20
Posts: 100+

Re: Add Your Block Code Here!

save project:
     ('save project' #- #saveScratchProject)
open project named []:
     ('open project named%s' #- #openScratchProjectNamed:)
quit scratch:
     ('quit scratch' #- #quitScratch)
all of these are pre-defined in the code XD i just made the block specs


http://i33.tinypic.com/2dw6hxv.gif

Offline

 

#16 2010-05-01 13:47:31

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Re: Add Your Block Code Here!

poppypaynterscratch wrote:

save project:
     ('save project' #- #saveScratchProject)
open project named []:
     ('open project named%s' #- #openScratchProjectNamed:)
quit scratch:
     ('quit scratch' #- #quitScratch)
all of these are pre-defined in the code XD i just made the block specs

Cool Blocks! Do They All Work, And Do They All Work In Presentation Mode? I Can't Check Right Now.  smile

Offline

 

#17 2010-05-01 14:43:25

poppypaynterscratch
Scratcher
Registered: 2009-09-20
Posts: 100+

Re: Add Your Block Code Here!

ummm... idk i didnt test them in FSM yet.... i will soon  smile


http://i33.tinypic.com/2dw6hxv.gif

Offline

 

#18 2010-05-01 15:31:59

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Re: Add Your Block Code Here!

poppypaynterscratch wrote:

ummm... idk i didnt test them in FSM yet.... i will soon  smile

What Is FSM? Well, Just Answer Me After You Test Them.

Offline

 

#19 2010-05-02 16:39:58

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Re: Add Your Block Code Here!

abootflock wrote:

I'll Make a version of scratch with all of these.

No You Won't. I'm Making A Version Of Scratch With All Of These. And If You Decide To Post It, I'll Tell Everyone That Uses It That The Blocks Came From This Forum.

Offline

 

#20 2010-05-02 23:28:59

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

Re: Add Your Block Code Here!

TheGameMaster1231 wrote:

poppypaynterscratch wrote:

save project:
     ('save project' #- #saveScratchProject)
open project named []:
     ('open project named%s' #- #openScratchProjectNamed:)
quit scratch:
     ('quit scratch' #- #quitScratch)
all of these are pre-defined in the code XD i just made the block specs

Cool Blocks! Do They All Work, And Do They All Work In Presentation Mode? I Can't Check Right Now.  smile

They dont work!


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

Offline

 

#21 2010-05-03 07:48:44

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Re: Add Your Block Code Here!

Joeman592 wrote:

TheGameMaster1231 wrote:

poppypaynterscratch wrote:

save project:
     ('save project' #- #saveScratchProject)
open project named []:
     ('open project named%s' #- #openScratchProjectNamed:)
quit scratch:
     ('quit scratch' #- #quitScratch)
all of these are pre-defined in the code XD i just made the block specs

Cool Blocks! Do They All Work, And Do They All Work In Presentation Mode? I Can't Check Right Now.  smile

They dont work!

Oh Well.  sad

Offline

 

#22 2010-05-07 20:33:56

poppypaynterscratch
Scratcher
Registered: 2009-09-20
Posts: 100+

Re: Add Your Block Code Here!

well, not all of them work in presentation mode, and you *kinda* need to figure in some stuff.... im not sure i can really post how here... or even repeat it  hmm


http://i33.tinypic.com/2dw6hxv.gif

Offline

 

#23 2010-05-09 20:08:47

distructo
Scratcher
Registered: 2010-03-24
Posts: 14

Re: Add Your Block Code Here!

i know!
its a [blocks]<(saying [)>[/blocks] block!
code:('saying %w' report if saying anything
but im warning you, it might not work

Offline

 

#24 2010-05-25 18:05:03

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Re: Add Your Block Code Here!

distructo wrote:

i know!
its a [blocks]<(saying [)>[/blocks] block!
code:('saying %w' report if saying anything
but im warning you, it might not work

Wow... You Are Not Very Experienced In Squeak Are You...

Offline

 

#25 2010-07-15 16:21:21

gryffn
Scratcher
Registered: 2009-07-20
Posts: 7

Re: Add Your Block Code Here!

distructo wrote:

i know!
its a [blocks]<(saying [)>[/blocks] block!
code:('saying %w' report if saying anything
but im warning you, it might not work

it works partly when you put it in this way  ('saying %w' #report #if #saying #anything)

  hmm

Offline

 

Board footer