Discuss Scratch

marsmark
Scratcher
83 posts

Better Custom Blocks

Toodchop wrote:

an ability to add inputs into Variables might be a good idea.
variables with input and output is literally just functions/custom blocks, which is what reporters are used for.
callmeblover
Scratcher
91 posts

Better Custom Blocks

bUMP
Unknown9856
Scratcher
40 posts

Better Custom Blocks

They will work like a custom block but with a return.
Mockup:




Well, so big, anyways,
It can be in an extension, so younger scratchers won't be confused. It should have two types:
  • Boolean return
In this the block shape will be like boolean reporters
  • String/Number return
This will be like the picture

Using “Stop {this script v}” block will skip to return

stop [this script v]

kaj approved

medians
Scratcher
1000+ posts

Better Custom Blocks

Bringing this topic up just because the other one is on the front page lol
CodeComet6161
Scratcher
500+ posts

Better Custom Blocks

medians wrote:

Bringing this topic up just because the other one is on the front page lol
By “the other one” do you mean my topic?
medians
Scratcher
1000+ posts

Better Custom Blocks

CodeComet6161 wrote:

medians wrote:

Bringing this topic up just because the other one is on the front page lol
By “the other one” do you mean my topic?
Yes xD
uuuuu7uuuuuuu
Scratcher
26 posts

Better Custom Blocks

NEED THIS
MarsChompsVenus
Scratcher
100+ posts

Better Custom Blocks

Ok guys I think it would likely look smth like this;


define example block 1 with input (input 1)
. . .
return (1234) ::cap custom

//would become
(example block 1 with input ())


Now if you returned a boolean, it would become a boolean block:

Ok guys I think it would likely look smth like this;


define example block 1 with input (input 1)
. . .
return <(my variable) = (10)> ::cap custom

<example block 1 with input ()>

Now I see no reason why this is not a very useful tool. In my opinion it might be one of the best things scratch could add.

Powered by DjangoBB