Discuss Scratch

JAVAProgramming
Scratcher
100+ posts

Custom Blocks

This is just a general script question…

I was wondering if anyone could explain the Custom blocks you can make in Scratch. Can anyone?
DotDash
Scratcher
1000+ posts

Custom Blocks

JAVAProgramming wrote:

This is just a general script question…

I was wondering if anyone could explain the Custom blocks you can make in Scratch. Can anyone?
You can make practically anything!
JAVAProgramming
Scratcher
100+ posts

Custom Blocks

DotDash wrote:

JAVAProgramming wrote:

This is just a general script question…

I was wondering if anyone could explain the Custom blocks you can make in Scratch. Can anyone?
You can make practically anything!
I get that part.. >_<

I just don't get the block and the Define thing.. I'm guessing you just define what the block does, but I was just wondering..
DotDash
Scratcher
1000+ posts

Custom Blocks

JAVAProgramming wrote:

DotDash wrote:

JAVAProgramming wrote:

This is just a general script question…

I was wondering if anyone could explain the Custom blocks you can make in Scratch. Can anyone?
You can make practically anything!
I get that part.. >_<

I just don't get the block and the Define thing.. I'm guessing you just define what the block does, but I was just wondering..
Yep.
JAVAProgramming
Scratcher
100+ posts

Custom Blocks

DotDash wrote:

JAVAProgramming wrote:

DotDash wrote:

JAVAProgramming wrote:

This is just a general script question…

I was wondering if anyone could explain the Custom blocks you can make in Scratch. Can anyone?
You can make practically anything!
I get that part.. >_<

I just don't get the block and the Define thing.. I'm guessing you just define what the block does, but I was just wondering..
Yep.
Oh.. lol…
Psiborg
Scratcher
500+ posts

Custom Blocks

They are just a way of creating subroutines. One of the most useful features though is being able to set a custom block to run without screen refresh - which can greatly speed up loops and give you a little more control.
LiquidMetal
Scratcher
100+ posts

Custom Blocks

This wiki article may help.
GiorgosKarvelas365
Scratcher
100+ posts

Custom Blocks

But 2.0 supports custom commands (not reporters or booleans (might me in future))

OR

Try BYOB (Build Your Own Blocks)
It can suport custom commands, reporters and predicates.
It can suport to create blocks in any category.
It can't suport editing blocks by using the System Browser. You must use your own block defentions
If wanted too Launch BYOB development.bat and then Shift-Click in edit menu (in 3) or Shift-Click to Y letter (in 2) then choose Turn fill screen off then edit it. Once you are done Shift-Click in edit menu (in 3) or Shift-Click to Y letter (in 2) then choose Turn fill screen on. Now test your new block and you can use it in your block defentions. Then Shift-Click in edit menu (in 3) or Shift-Click to Y letter (in 2) then choose Save image of end user and your changes will be saved.
For more information go to BYOB/Snap website to read more about custom blocks.


Sorry… It is very long.

Last edited by GiorgosKarvelas365 (Aug. 29, 2013 20:26:25)

scubajerry
Scratcher
1000+ posts

Custom Blocks

Take a look at the STAGE of this project, it is a simple example.

http://scratch.mit.edu/projects/12057903/#editor

This project (look at STAGE) shows a lot more examples. For me it is a great way to document your code so you and others can understand it.
http://scratch.mit.edu/projects/11759354/#editor

Last edited by scubajerry (Aug. 29, 2013 23:57:05)

GiorgosKarvelas365
Scratcher
100+ posts

Custom Blocks

Scratch 2.0 can make a custom block with string, numeric and or boolean not drop-downs(might be used by editing JSON).
To use it in your block defentions, drag copies and add it anywhere in your block defention.
Here is the arguments:
(string)
(number)
<boolean>
2.0 boolean inpunts are boolean instead of reporter.
BYOB 3 inputs are reporter.
BYOB 3 can define a block with 12 argument. Here is the arguments:
(object)
(text)
(list)
(number)
(string)
(boolean)
(inline command)
(C-slot)
(reporter)
(predicate)
(unlevaulted string)
(unlevaulted boolean)
Please post a comment about custom block arguments. You can do it on my user page.
JAVAProgramming
Scratcher
100+ posts

Custom Blocks

kk, I've figured it out, I just don't have a reason to use one yet, so when I do have a reason, I'll use it.
curiouscrab
Scratcher
500+ posts

Custom Blocks

LiquidMetal wrote:

This wiki article may help.
and this.
GiorgosKarvelas365
Scratcher
100+ posts

Custom Blocks

Why Scratch 2.0 doesn't support custom reporter and boolean blocks?
blob8108
Scratcher
1000+ posts

Custom Blocks

GiorgosKarvelas365 wrote:

Why Scratch 2.0 doesn't support custom reporter and boolean blocks?
They're going to add those.
Gaza101
Scratcher
500+ posts

Custom Blocks

Hey, take a look at my project. Hope this helps.
JAVAProgramming
Scratcher
100+ posts

Custom Blocks

Okay.. You can stop necroposting (Is that was you call it on Scratch?)…

Powered by DjangoBB