Discuss Scratch

PlatoHero_
Scratcher
500+ posts

Better Custom Blocks

I support you as well. When I want to make artificial intelligence, I have to use many
blocks, but this could change with my boolean and reporter blocks.
If such an update happened, programming with scratch would be much easier.

Last edited by PlatoHero_ (Oct. 7, 2020 21:36:09)

PkmnQ
Scratcher
1000+ posts

Better Custom Blocks

gosoccerboy5 wrote:

Y'know, I had something that was like this.
Cool, that'll be closed as a dupe, because this was in 2013.
trieuminh
Scratcher
100+ posts

Better Custom Blocks

PkmnQ wrote:

gosoccerboy5 wrote:

Y'know, I had something that was like this.
Cool, that'll be closed as a dupe, because this was in 2013.
I don't think these are the same thing.
PkmnQ
Scratcher
1000+ posts

Better Custom Blocks

trieuminh wrote:

PkmnQ wrote:

gosoccerboy5 wrote:

Y'know, I had something that was like this.
Cool, that'll be closed as a dupe, because this was in 2013.
I don't think these are the same thing.
Even if it was, this wouldn't be closed down. This isn't the dupe.
gosoccerboy5
Scratcher
1000+ posts

Better Custom Blocks

Bump. I was messing around with snap and I learned that you can actually apply recursion to custom reporters
Hearst10
Scratcher
100+ posts

Better Custom Blocks

Firedrake969 wrote:

Support all! All are used in real coding; why not here?
support! exactly
_tenfictions_
Scratcher
100+ posts

Better Custom Blocks

i love how this is still alive anyways where 3.0 mockup
PkmnQ
Scratcher
1000+ posts

Better Custom Blocks

_tenfictions_ wrote:

i love how this is still alive anyways where 3.0 mockup

1132262 wrote:

brooc210 wrote:

AonymousGuy posted:

[snip]
3.0 has released alredy so can you give use a pic of what it should look like in 3.0?
Sure.
gosoccerboy5
Scratcher
1000+ posts

Better Custom Blocks

I can give you one with the Scratchblocks plugin
Here's an example that I came across:
define (factorial (n:: custom))
if <(n :: custom) = [0]> then
report [0] :: control cap
else
report ((n:: custom) * (factorial of (n:: custom) - [1]))::control cap
//Here's how it would look:
(factorial of [7]:: custom)
Edit: oh darn sorry forgot to close the tag My bad

Last edited by gosoccerboy5 (Nov. 6, 2020 14:00:59)

space_elephant
Scratcher
500+ posts

Better Custom Blocks

gosoccerboy5 wrote:

I can give you one with the Scratchblocks plugin
Here's an example that I came across:
define (factorial (n:: custom))
if <(n :: custom) = [0]> then
report [0] :: control cap
else
report ((n:: custom) * (factorial of (n:: custom) - [1]))::control cap
//Here's how it would look:
(factorial of [7]:: custom)
[/quote]
0! = 1.
brooc210
Scratcher
100+ posts

Better Custom Blocks

Snap!ʼs got it for a fact
Vaibhs11
Scratcher
1000+ posts

Better Custom Blocks

Support for the bootlean! That could be a fully different way to customize but great for experienced scratchers!
MartianSoil
Scratcher
100+ posts

Better Custom Blocks

bump
BasisEssence779
Scratcher
100+ posts

Better Custom Blocks

Support support and support
gosoccerboy5
Scratcher
1000+ posts

Better Custom Blocks

BasisEssence779 wrote:

Support support and support
and why and why and why
Marc92020
Scratcher
1000+ posts

Better Custom Blocks

Support but a feature could also be to add a dropdown into the block.

sathvikrias
Scratcher
500+ posts

Better Custom Blocks

Marc92020 wrote:

Support but a feature could also be to add a dropdown into the block.

yes, and also custom c would be good as an input which would look like a stack block, and it would report what is placed in the c. that would need a block called
run{
}::control
and
(call () :: control
Marc92020
Scratcher
1000+ posts

Better Custom Blocks

sathvikrias wrote:

Marc92020 wrote:

Support but a feature could also be to add a dropdown into the block.

yes, and also custom c would be good as an input which would look like a stack block, and it would report what is placed in the c. that would need a block called
run{
}::control
and
(call () :: control
Yeah. A custom C block would be cool! And a custom hat, and a cap.
sathvikrias
Scratcher
500+ posts

Better Custom Blocks

Marc92020 wrote:

sathvikrias wrote:

Marc92020 wrote:

Support but a feature could also be to add a dropdown into the block.

yes, and also custom c would be good as an input which would look like a stack block, and it would report what is placed in the c. that would need a block called
run{
}::control
and
(call () :: control
Yeah. A custom C block would be cool! And a custom hat, and a cap.
hat and cap are good. also here is how i think we should do a hat:
well, first the input slot options would be the same, [], <> the definition would look like
when <> :: custom hat
idea for script vars:
use script variable (var::#dd0000){
}::variables
and lists:
use temporary list (list::#ff8800){
}::list
and
use script variable [var]{
}::variables
and lists:
use temporary list [list]{
}::list
last thing: please add back number inputs in custom blocks!

Last edited by sathvikrias (Nov. 13, 2020 22:51:46)

Powered by DjangoBB