Discuss Scratch

Hearst10
Scratcher
100+ posts

Better Custom Blocks

PATSATDAT wrote:

gosoccerboy5 wrote:

Other languages have it as a cap block, same as snap. Why not scratch?
a cap block is a block that scripts can not run after so it shouldnt be a cap block
we don't want scripts to run after that. plus, there is a very easy workaround if it is a cap block.
look, i'll just quote, @bharvey (scratch username) (@bh in snap!), a snap! developer, from the snap forums:

bharvey on the snap forums wrote:

-snip-
When you report a value to your caller, your process is back in the caller, not running code in the procedure. Why would that be useful? You can't report a second time; your caller has already picked up your reported value and is running with it.
Proof

Last edited by Hearst10 (Jan. 29, 2021 14:52:10)


Moving from Scratch? Don't learn C or Java, try Snap!
gosoccerboy5
Scratcher
1000+ posts

Better Custom Blocks

PATSATDAT wrote:

gosoccerboy5 wrote:

Other languages have it as a cap block, same as snap. Why not scratch?
a cap block is a block that scripts can not run after so it shouldnt be a cap block
Yeah, but the point of a return statement is that it returns an output, it returns to the original script. I think the main point of not being able to run scripts after a return statement is because that kind of function only serves a specific use and should not extend beyond that.

PATSATDAT
Scratcher
1000+ posts

Better Custom Blocks

Hearst10 wrote:

PATSATDAT wrote:

gosoccerboy5 wrote:

Other languages have it as a cap block, same as snap. Why not scratch?
a cap block is a block that scripts can not run after so it shouldnt be a cap block
we don't want scripts to run after that. plus, there is a very easy workaround if it is a cap block.
look, i'll just quote, @bharvey (scratch username) (@bh in snap!), a snap! developer, from the snap forums:

bharvey on the snap forums wrote:

-snip-
When you report a value to your caller, your process is back in the caller, not running code in the procedure. Why would that be useful? You can't report a second time; your caller has already picked up your reported value and is running with it.
Proof
Its picked it up but we wont use the return block afterwards
return () ::custom
scripts that arent return blocks ::grey
PATSATDAT
Scratcher
1000+ posts

Better Custom Blocks

mrCamelCase wrote:

Futurebot5 wrote:

Has the ST ever seen this?

No clue. It's a long, old topic so presumably yes, and they've chosen not to act on it.
sadly they havent acted on it
Hearst10
Scratcher
100+ posts

Better Custom Blocks

PATSATDAT wrote:

-sniiiiiiiiiiiiiiiip-
look: I have already said that there is an easy workaround.

Moving from Scratch? Don't learn C or Java, try Snap!
IndianRuby718
Scratcher
100+ posts

Better Custom Blocks

mrCamelCase wrote:

Wasn't this already rejected?
what
I've seen older posts on other topics saying that 3.0 was going to have custom reporters! That's like the opposite of rejected–

I've found so many times I would've used this ever since seeing this topic..

One thing I came up with is doing something like this, for example:
set [variable v] to ((complex thing :: list) * (another complex thing :: list)) 
Where both of these use the same temp. variable. If we had custom reporters, then the temp could be reused (I think so.. I could be wrong), while with any other way we'd need two temps.

Also, about what the cap block should say, I still think it should be “report”. “return value” also sounds interesting, though it would still be a lot better as a single word. “return” may be used in other programming languages, but I personally don't like the sound of it, and I think it would be a tad less confusing :P

Hearst10 wrote:

look: I have already said that there is an easy workaround.
But, this feature would be so intuitive to have; I've found myself wishing for custom reporters ever since seeing this topic.

Not for custom booleans though at least not yet

So… I didn't update my signature for over a year XP But… I left the forums, and I'm not coming back anytime soon
(and I'm not updating my signature)


Both stickied Suggestions Directories currently have 138 replies.
Only fdreerf can break the equilibrium.

________________




Za-chary wrote:

I get more frustrated with people telling me about “mass reporting” than I do about “mass reporting” itself.
source
good luck digging up the original reply in the comments
ctrl+f exists


https://scratch.mit.edu/discuss/post/6961734/


Bug with the color effect I would really like to see fixed






EEEEEEE   DDDDDD    IIIIIIII  TTTTTTTT           NNN    NN     OOOOO
EE DD DD II TT :: NNNN NN OO OO
EEEEEEE DD DD II TT NN NN NN OO OO
EE DD DD II TT :: NN NN NN OO OO
EE DD DD II TT NN NNNN OO OO
EEEEEEE DDDDDD IIIIIIII TT NN NNN OOOOO
Hand-done.

< :: extension>
< :: custom-arg>
< :: motion>



Don't click this link…
Delta135
Scratcher
100+ posts

Better Custom Blocks

full support, only make it so that you can make hat, reporter, and stack block shapes

PATSATDAT
Scratcher
1000+ posts

Better Custom Blocks

Delta135 wrote:

full support, only make it so that you can make hat, reporter, and stack block shapes
What about Boolean shapes?
AHypnoman
Scratcher
1000+ posts

Better Custom Blocks

PATSATDAT wrote:

Delta135 wrote:

full support, only make it so that you can make hat, reporter, and stack block shapes
What about Boolean shapes?
They're called predictates, and yes, We would have those as well.
Just gonna link Wikipedia for those doubting the name

Last edited by AHypnoman (Feb. 3, 2021 09:02:53)


~ AHypnoman (Use Shift+Down Arrow to see the rest of my signature)







I am an evil kumquat, and your siggy looks tasty…
Hello there, I'm AHypnoman, If you write my name remember to capitalize the “H”. “When you don't create things, you become defined by your tastes rather than ability. your tastes only narrow & exclude people. so create.” I write though as tho.
According to the Chrome Console, my viewbox attribute is “Garbage”. Very nice, Chrome.
#TrendyHashtag
Gib internneeet

Play Retorquebit!


Rendangbike2
Scratcher
1000+ posts

Better Custom Blocks

AHypnoman wrote:

PATSATDAT wrote:

Delta135 wrote:

full support, only make it so that you can make hat, reporter, and stack block shapes
What about Boolean shapes?
They're called predictates, and yes, We would have those as well.
They're called booleans and let's not get offtopic.




Ankit_Anmol
Scratcher
500+ posts

Better Custom Blocks

FULL SUPPORT

@Ankit_Anmol
Quality game developer on scratch
Please support this suggestion: https://scratch.mit.edu/discuss/topic/481580/
Thanks for your time!

set [Ankit_Anmol v] to [Genius v]
Rendangbike2
Scratcher
1000+ posts

Better Custom Blocks

Ankit_Anmol wrote:

FULL SUPPORT
Why?




1132262
Scratcher
1000+ posts

Better Custom Blocks

Rendangbike2 wrote:

Ankit_Anmol wrote:

FULL SUPPORT
Why?
At this point asking people why they support just adds more posts. They rarely actually respond, and when they do, they give a reason that's been given many times before.

!!
Hearst10
Scratcher
100+ posts

Better Custom Blocks

Rendangbike2 wrote:

AHypnoman wrote:

PATSATDAT wrote:

Delta135 wrote:

full support, only make it so that you can make hat, reporter, and stack block shapes
What about Boolean shapes?
They're called predictates, and yes, We would have those as well.
They're called booleans and let's not get offtopic.
no, they are predicates. people call them booleans because the return value is a boolean.

1132262 wrote:

Rendangbike2 wrote:

Ankit_Anmol wrote:

FULL SUPPORT
Why?
At this point asking people why they support just adds more posts. They rarely actually respond, and when they do, they give a reason that's been given many times before.
i'll say “please be constructive” in the future

Moving from Scratch? Don't learn C or Java, try Snap!
Hearst10
Scratcher
100+ posts

Better Custom Blocks

Delta135 wrote:

full support, only make it so that you can make hat, reporter, and stack block shapes
and what about c-blocks? (look, the c-shape is an input) to the block, not a type of block.)
also, please be constructive.

Last edited by Hearst10 (Feb. 3, 2021 14:12:37)


Moving from Scratch? Don't learn C or Java, try Snap!
twitch_BobbyBrawlz
Scratcher
86 posts

Better Custom Blocks

Support, Great Idea!

Highlight Ctrl shift down


A Decent Platformer

Slingshot Physics Game



Hearst10
Scratcher
100+ posts

Better Custom Blocks

twitch_BobbyBrawlz wrote:

Support, Great Idea!
please be constructive and say why

Moving from Scratch? Don't learn C or Java, try Snap!
Rendangbike2
Scratcher
1000+ posts

Better Custom Blocks

twitch_BobbyBrawlz wrote:

Support, Great Idea!
Can you please tell us why is it a great idea?




Redclopez
Scratcher
19 posts

Better Custom Blocks

Support. I've been thinking about doing that too. I could use it like this
<[] < (num.) > []>

Last edited by Redclopez (Feb. 4, 2021 01:08:30)


when I start coding :: events :: hat
set [Usename v] to [Redclopez]
open (pick random (new project :: sensing) or (old project :: sensing):: operators) :: control
forever
code (join (cool stuff) (games) (more)::operators) :: motion
end
Highlight this and press down arrow to see the rest of my signature.
Come check out some of my projects!
Ring | Rocket Trip | The Invisible Square |
☁Safe Online Chat☁
| Online test | Bird |


Thanks to -MagicAesthetics-
Scratchperson1000000
Scratcher
500+ posts

Better Custom Blocks

support

DJHNVLKJUDHFIUYHDLKUHDKLFJUYGDKJFGDHMFGMDBKJSDBCKSNICUNDCHICUGUYDSGFUHGADJFIEUGAFKJ

Powered by DjangoBB