Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Custom Blocks
- JAVAProgramming
-
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?
I was wondering if anyone could explain the Custom blocks you can make in Scratch. Can anyone?
- DotDash
-
1000+ posts
Custom Blocks
You can make practically anything! This is just a general script question…
I was wondering if anyone could explain the Custom blocks you can make in Scratch. Can anyone?

- JAVAProgramming
-
100+ posts
Custom Blocks
I get that part.. >_<You can make practically anything! This is just a general script question…
I was wondering if anyone could explain the Custom blocks you can make in Scratch. Can anyone?
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
-
1000+ posts
Custom Blocks
Yep.I get that part.. >_<You can make practically anything! This is just a general script question…
I was wondering if anyone could explain the Custom blocks you can make in Scratch. Can anyone?
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..
- JAVAProgramming
-
100+ posts
Custom Blocks
Oh.. lol…Yep.I get that part.. >_<You can make practically anything! This is just a general script question…
I was wondering if anyone could explain the Custom blocks you can make in Scratch. Can anyone?
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..
- Psiborg
-
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.
- GiorgosKarvelas365
-
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.
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
-
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
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
-
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.
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
-
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.
- GiorgosKarvelas365
-
100+ posts
Custom Blocks
Why Scratch 2.0 doesn't support custom reporter and boolean blocks?
- blob8108
-
1000+ posts
Custom Blocks
They're going to add those. Why Scratch 2.0 doesn't support custom reporter and boolean blocks?
- JAVAProgramming
-
100+ posts
Custom Blocks
Okay.. You can stop necroposting (Is that was you call it on Scratch?)…
- Discussion Forums
- » Help with Scripts
-
» Custom Blocks