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

#1 2008-09-11 19:13:21

TimeFreeze
Scratcher
Registered: 2008-08-11
Posts: 500+

Custom Blocks

I think scratch should have custom blocks. The point of custom blocks would be to put other coding inside them so that it would be sort of like generating a new type of block. You could export the custom blocks, and use them in other projects. For example, it would be in a new section called "custom".  Like this: http://www.freewebs.com/scratchclubsite/Custom%20Tab.gif http://www.freewebs.com/scratchclubsite/Custom%20Tab2.gif. To make a block you would have to click this: http://www.freewebs.com/scratchclubsite/Make%20Custom.gif?0.0770917361717941. The block could hold several blocks inside like this:http://www.freewebs.com/scratchclubsite/Closed%20Block.gif http://www.freewebs.com/scratchclubsite/Open%20Block.gif. This would be very useful for shortening out your scripts that are too long or saving a certain script that you use multiple times.


There are 10 types of people in this world: Those who understand binary, and those who don't. --[insert unrelated transition]-- GRANDILOQUENCE FTW!

Offline

 

#2 2008-09-11 19:26:26

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: Custom Blocks

TimeFreeze wrote:

I think scratch should have custom blocks. The point of custom blocks would be to put other coding inside them so that it would be sort of like generating a new type of block. You could export the custom blocks, and use them in other projects. For example, it would be in a new section called "custom".  Like this: http://www.freewebs.com/scratchclubsite … %20Tab.gif http://www.freewebs.com/scratchclubsite … 20Tab2.gif. To make a block you would have to click this: http://www.freewebs.com/scratchclubsite … 7361717941. The block could hold several blocks inside like this:http://www.freewebs.com/scratchclubsite … 0Block.gif http://www.freewebs.com/scratchclubsite … 0Block.gif. This would be very useful for shortening out your scripts that are too long or saving a certain script that you use multiple times.

i love that suggestion but i would like a different color though.

Offline

 

#3 2008-09-11 19:42:17

TimeFreeze
Scratcher
Registered: 2008-08-11
Posts: 500+

Re: Custom Blocks

keroro645 wrote:

i love that suggestion but i would like a different color though.

Sorry I couldn't think of anything else. what color were you thinking of?


There are 10 types of people in this world: Those who understand binary, and those who don't. --[insert unrelated transition]-- GRANDILOQUENCE FTW!

Offline

 

#4 2008-09-11 19:48:07

Infinex_emperor
Scratcher
Registered: 2008-08-20
Posts: 9

Re: Custom Blocks

That would be very useful, instead of copying scripts and dragging them to where you want


PS-  Why do you have 3 different accounts, TimeFreeze, TheChosenOne, Time4Scratchers.

Last edited by Infinex_emperor (2008-09-11 19:53:59)

Offline

 

#5 2008-09-11 19:48:31

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: Custom Blocks

Broadcasts can do that.

when I receive [something]
clear graphic effects
clear
stamp
repeat (20)
- change [ghost] effect by (5)
- change size by 5
set size to 100%
clear graphic effects
clear

And for when you want to activate the scripts inside it:

broadcast [something]

But this is good for shortening scripts that are waaay too long.

Offline

 

#6 2008-09-11 19:57:45

TimeFreeze
Scratcher
Registered: 2008-08-11
Posts: 500+

Re: Custom Blocks

bhz wrote:

Broadcasts can do that.

when I receive [something]
clear graphic effects
clear
stamp
repeat (20)
- change [ghost] effect by (5)
- change size by 5
set size to 100%
clear graphic effects
clear

And for when you want to activate the scripts inside it:

broadcast [something]

But this is good for shortening scripts that are waaay too long.

See, the thing is that you can't export brodcasts. This would be like creating your own little block that you can use in all of your projects.


There are 10 types of people in this world: Those who understand binary, and those who don't. --[insert unrelated transition]-- GRANDILOQUENCE FTW!

Offline

 

#7 2008-09-11 20:02:04

TimeFreeze
Scratcher
Registered: 2008-08-11
Posts: 500+

Re: Custom Blocks

Infinex_emperor wrote:

That would be very useful, instead of copying scripts and dragging them to where you want


PS-  Why do you have 3 different accounts, TimeFreeze, TheChosenOne, Time4Scratchers.

Time4Scratchers is just for the magazine, duh! TimeFreeze is my main, and TCO is just for like, well, other stuff I guess.
PSS- You wrote"PS-  Why do you have 3 different accounts, TimeFreeze, TheChosenOne, Time4Scratchers.", and it should end with a question mark. Just wanted 2 bug u.


There are 10 types of people in this world: Those who understand binary, and those who don't. --[insert unrelated transition]-- GRANDILOQUENCE FTW!

Offline

 

#8 2008-09-11 20:05:10

TimeFreeze
Scratcher
Registered: 2008-08-11
Posts: 500+

Re: Custom Blocks

Also note that I forgot the ending attachment part of the block, srry.


There are 10 types of people in this world: Those who understand binary, and those who don't. --[insert unrelated transition]-- GRANDILOQUENCE FTW!

Offline

 

#9 2008-09-11 21:27:38

dsdude10
Scratcher
Registered: 2007-09-22
Posts: 500+

Re: Custom Blocks

Whoa, that's a good idea, I hope it comes in the next version of scratch

Offline

 

#10 2008-09-11 21:30:13

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: Custom Blocks

color brown

Offline

 

#11 2008-09-11 21:49:05

terminator355
Scratcher
Registered: 2008-07-31
Posts: 100+

Re: Custom Blocks

bhz wrote:

Broadcasts can do that.

when I receive [something]
clear graphic effects
clear
stamp
repeat (20)
- change [ghost] effect by (5)
- change size by 5
set size to 100%
clear graphic effects
clear

And for when you want to activate the scripts inside it:

broadcast [something]

But this is good for shortening scripts that are waaay too long.

also you cant say "when i receive" in the middle of a script.


No new stuff for now guys  wink  join me for some Black Ops on xbox: termhn or for some rock band on PS3: rocket232

Offline

 

#12 2008-09-11 22:10:09

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Custom Blocks

I think that Scratch should be able to support different programming languages 9than of course convert) so we can literally program our own blocks


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#13 2008-09-12 01:12:42

terminator355
Scratcher
Registered: 2008-07-31
Posts: 100+

Re: Custom Blocks

Bluestribute wrote:

I think that Scratch should be able to support different programming languages 9than of course convert) so we can literally program our own blocks

me too but to someone else that might be too complex. which is why i think there should  be 2 levels of programing


No new stuff for now guys  wink  join me for some Black Ops on xbox: termhn or for some rock band on PS3: rocket232

Offline

 

#14 2008-09-12 10:44:06

johnadmin
Scratch Team
Registered: 2007-03-13
Posts: 100+

Re: Custom Blocks

Hi, TimeFreeze.

Nice suggestion! It's well thought-out and your arguments are clear.

I agree, it would be really great to be able to make your own custom blocks in Scratch, both to use them in your own projects and to share them with other users.

We (the Scratch Team) has been thinking  a lot about this feature. But we were thinking that it would be nice if the user-created block could take parameters, the way the built-in blocks do. For example, you might want a parameter to control how fast or far a sprite moved. Do you have any ideas about that?

  -- John

Offline

 

#15 2008-09-12 20:17:43

TimeFreeze
Scratcher
Registered: 2008-08-11
Posts: 500+

Re: Custom Blocks

johnadmin wrote:

Hi, TimeFreeze.

Nice suggestion! It's well thought-out and your arguments are clear.

I agree, it would be really great to be able to make your own custom blocks in Scratch, both to use them in your own projects and to share them with other users.

We (the Scratch Team) has been thinking  a lot about this feature. But we were thinking that it would be nice if the user-created block could take parameters, the way the built-in blocks do. For example, you might want a parameter to control how fast or far a sprite moved. Do you have any ideas about that?

  -- John

Well, I'm not sure I completely understand what you are saying about the parameters. But, anyways, thanks for supporting my suggestion!


There are 10 types of people in this world: Those who understand binary, and those who don't. --[insert unrelated transition]-- GRANDILOQUENCE FTW!

Offline

 

#16 2008-09-13 03:05:26

CPfan123
Scratcher
Registered: 2008-08-20
Posts: 90

Re: Custom Blocks

This would shorten a lot blocks, but it's nothing than a block-hold (no offense).


Check out my Dice Spin game! http://scratch.mit.edu/projects/CPfan123/314874               Also see Paint Pro Flash! http://scratch.mit.edu/projects/CPfan123/289030
Scratch is good, but have you ever tried Game Maker? http://www.yoyogames.com

Offline

 

#17 2008-09-13 07:22:40

TimeFreeze
Scratcher
Registered: 2008-08-11
Posts: 500+

Re: Custom Blocks

CPfan123 wrote:

This would shorten a lot blocks, but it's nothing than a block-hold (no offense).

Well, yeah it's supposed to be a block holder. This is for unique stacks of blocks that you (or someone else) created and can use in a lot of things. The sample stack of blocks inside the custom block shown above is a cool effect my friend taught me how to do.


There are 10 types of people in this world: Those who understand binary, and those who don't. --[insert unrelated transition]-- GRANDILOQUENCE FTW!

Offline

 

#18 2008-09-14 09:37:46

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: Custom Blocks

there is a way around this. Instead of useing a brodcast as mentioned above, you could create a veriable and a If statement, you could then when ever you need the script have that the verible go to 1 then back to 0. On the backround you could have a script: when green flag pressed forever if (veribale)=1 (enter script).
You could also then make this statement on a empty project with no other scripts/sprites and save it. Whenever you then need that script you could import it using the Extras feuter.
Hope that helps

Offline

 

#19 2008-09-14 09:57:06

registeel
Scratcher
Registered: 2008-04-27
Posts: 500+

Re: Custom Blocks

thats a brilliant idea! I hope it is used.

Offline

 

#20 2008-09-14 12:46:20

TimeFreeze
Scratcher
Registered: 2008-08-11
Posts: 500+

Re: Custom Blocks

yambanshee wrote:

there is a way around this. Instead of useing a brodcast as mentioned above, you could create a veriable and a If statement, you could then when ever you need the script have that the verible go to 1 then back to 0. On the backround you could have a script: when green flag pressed forever if (veribale)=1 (enter script).
You could also then make this statement on a empty project with no other scripts/sprites and save it. Whenever you then need that script you could import it using the Extras feuter.
Hope that helps

It helps, but I knew this already. The point of custom blocks is to make it variable-free, and easy to use. If you imported the project every time from the extras, you would have to delete the irrelevant sprites.

And that would be a real pain...

      ---TF

Last edited by TimeFreeze (2008-09-19 19:03:47)


There are 10 types of people in this world: Those who understand binary, and those who don't. --[insert unrelated transition]-- GRANDILOQUENCE FTW!

Offline

 

#21 2008-09-20 21:38:46

TimeFreeze
Scratcher
Registered: 2008-08-11
Posts: 500+

Re: Custom Blocks

I also think that it should be able to make different kinds of blocks. E.g number block like (1+1). You could create one for Pythagoras's theorem. You could also create true/false blocks (boolean).


There are 10 types of people in this world: Those who understand binary, and those who don't. --[insert unrelated transition]-- GRANDILOQUENCE FTW!

Offline

 

#22 2008-09-20 21:41:07

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Custom Blocks

That would be so awesome!

Offline

 

#23 2008-09-21 04:42:10

matthewjose
Scratcher
Registered: 2008-07-16
Posts: 100+

Re: Custom Blocks

This idea is......... BRILLIANT! I think Scratch would be easier with this and it should be added.


My chat room, and join a Critique Group for feedback on your projects.

Offline

 

#24 2008-09-21 23:06:42

Auron
Scratcher
Registered: 2008-08-08
Posts: 20

Re: Custom Blocks

How would you program it? Sounds good! How about choosing what colour you want?

Offline

 

#25 2008-09-22 06:47:48

matthewjose
Scratcher
Registered: 2008-07-16
Posts: 100+

Re: Custom Blocks

Auron wrote:

How would you program it? Sounds good! How about choosing what colour you want?

Yep, that would be even better! Color choosing..... do you mean your OWN color or what type of block it is? (motion, sensing, sounds, etc.)


My chat room, and join a Critique Group for feedback on your projects.

Offline

 

Board footer