Discuss Scratch
- Discussion Forums
- » Suggestions
- » Better Custom Blocks
- peppermintpatty5
- Scratcher
1000+ posts
Better Custom Blocks
That's indeed a very long replyLol, I took so long to write my reply someone wrote before meReport, being the equivalent of a return statement, should be a cap block so that no blocks can be placed under it. After a return statement, the method breaks and the code underneath doesn't run. But I agree, sometimes I want to evaluate an expression in the return statement rather than using a literal. and close your scratchblocks tags please :Psnip::variables
See my above statement regarding literals
You're dropdown/insertion cap solution is very elegant!
And I'd like to remind everyone that exclusive or (XOR) is:
<not <<a::#000000> = <b::#000000>>>
wow, the scratchblock plugin has changed a lot!
- jokebookservice1
- Scratcher
1000+ posts
Better Custom Blocks
Uhh uhh my thing returned false on success.. so yeah (jk, I made a mistake)That's indeed a very long replyLol, I took so long to write my reply someone wrote before meReport, being the equivalent of a return statement, should be a cap block so that no blocks can be placed under it. After a return statement, the method breaks and the code underneath doesn't run. But I agree, sometimes I want to evaluate an expression in the return statement rather than using a literal. and close your scratchblocks tags please :Psnip::variables
See my above statement regarding literals
You're dropdown/insertion cap solution is very elegant!
And I'd like to remind everyone that exclusive or (XOR) is:<not <<a::#000000> = <b::#000000>>>
wow, the scratchblock plugin has changed a lot!
And I really like the use of the new scratchblocks. Black looks shiny
- Scratch_Mapping
- Scratcher
100+ posts
Better Custom Blocks
//support!
define(custom reporter::custom)
{} (report []::custom-arg) :: custom cap //You can use these
define<custom boolean>
{} (report <>::custom-arg) :: custom cap
:: obsolete
:: #FFFFFF
:: pen
- AonymousGuy
- Scratcher
1000+ posts
Better Custom Blocks
Sorry for the annoying bump.
One more thing is that this topic has two distinct suggestions as part of it:
Well, this is the only feedback I've gotten on this, and I agree, so I've gone ahead and done this. If anybody is interested in the old OP, you can find it here.Yes, absolutely @all:
Do you guys think I should remove the supporters count / list from the first post, as arbitrary supporter count is now considered to be a less than ideal metric on the suggestions forum?
Saiid
One more thing is that this topic has two distinct suggestions as part of it:
- Custom reporters and booleans (I consider this one category - booleans are simply an optional feature of this suggestion)
- Local variables
- cs395875
- Scratcher
100+ posts
Better Custom Blocks
Use variables for reporters-booleans. Stack blocks already exists. You can use the “say” block to print out the reporter/boolean. So let's face it, no.
((((((((((((((((((((((((((((((((((((((((((((colourful blocks::custom)::looks)::sound)::sensing)::motion)::pen)::operators)::control)::variables)::obsolete)::list)::custom)::looks)::sound)::sensing)::motion)::pen)::operators)::control)::variables)::obsolete)::list)::custom)::looks)::sound)::sensing)::motion)::pen)::operators)::control)::variables)::obsolete)::list)::custom)::looks)::sound)::sensing)::motion)::pen)::operators)::control)::variables)::obsolete)::list)
- jokebookservice1
- Scratcher
1000+ posts
Better Custom Blocks
I do not follow your logic. How are you supposed to do recursion? And even if you create an over-complicated workaround for recursion, I don't see how that means a suggestion shouldn't be implemented. Use variables for reporters-booleans. Stack blocks already exists. You can use the “say” block to print out the reporter/boolean. So let's face it, no.
- braxbroscratcher
- Scratcher
1000+ posts
Better Custom Blocks
Yes. It's really unprofessional.Pardon, but why on earth would you use the “say” block? Use variables for reporters-booleans. Stack blocks already exists. You can use the “say” block to print out the reporter/boolean. So let's face it, no.
My signature is kumquat proof.
But not tangerine pro-
nomnomnomnomnom
- HoofEMP
- Scratcher
100+ posts
Better Custom Blocks
Appearance aside, what I meant was: why would you use the “say” block to print your function/boolean? There's barely any circumstance where one would want their sprite to say “true” or “false”.Yes. It's really unprofessional.Pardon, but why on earth would you use the “say” block? Use variables for reporters-booleans. Stack blocks already exists. You can use the “say” block to print out the reporter/boolean. So let's face it, no.
- Saiid
- Scratcher
1000+ posts
Better Custom Blocks
That is exactly what I was wonderingAppearance aside, what I meant was: why would you use the “say” block to print your function/boolean? There's barely any circumstance where one would want their sprite to say “true” or “false”.Yes. It's really unprofessional.Pardon, but why on earth would you use the “say” block? Use variables for reporters-booleans. Stack blocks already exists. You can use the “say” block to print out the reporter/boolean. So let's face it, no.
Saiid
- Rodidudu
- Scratcher
5 posts
Better Custom Blocks
But how to make
(this block)in scratch?
Last edited by Rodidudu (Dec. 9, 2016 17:30:55)
- Tomas2468
- Scratcher
39 posts
Better Custom Blocks
Support
when I wake up::hat events
go to [computer v]
turn on [computer v]::stack motion
repeat until <(time) = [23:59]>
think::custom
draw::pen
code::motion
think again::custom
code::motion
share::variables
end
sleep::custom
- space_elephant
- Scratcher
500+ posts
Better Custom Blocks
I think there should also be custom hat blocks and cap blocks.
custom hat ::custom hatis the same as
when<custom boolean ::custom>is true ::events hatand
custom cap ::custom capis the same as
custom stack ::customSo custom hat blocks are programed as boolean blocks and custom cap blocks are programed as stack blocks.
stop [this script v]
- HoofEMP
- Scratcher
100+ posts
Better Custom Blocks
Well, really, I think there should also be custom hat blocks and cap blocks.custom hat ::custom hatis the same aswhen<custom boolean ::custom>is true ::events hatandcustom cap ::custom capis the same ascustom stack ::customSo custom hat blocks are programed as boolean blocks and custom cap blocks are programed as stack blocks.
stop [this script v]
custom stack::custom
stop [this script v]
is probably too easy of a workaround to a custom cap for the ST to implement, if they implement this suggestion at all. Besides, your custom hat also has a very easy workaround;
when flag clicked
wait until <custom bool::custom>
...::cap
- dvargasews
- Scratcher
500+ posts
Better Custom Blocks
Snap! has these.
Please read my signature! It might explain some lingo that I used in my post or comment. However, not all of it shows, so you have to highlight the entire bottom of the post, from “Please read my signature!” to where it says report, and copy and paste in into a new sheet or tab or whatever.
I can't decide my signature between:
1. I'm a grammar stickler, and my pet peeve is when people use good as an adverb.
2. I have lots of [creativity]original ideas[/creativity]. [creativity]This[/creativity] is one of those ideas.
3. If I used this symbol: ⸮ in my comment, please look it up before doing anything else.
4. {Minot, North Dakota/Donald Trump parodies} “WE'RE GONNA BUILD A DAM AND MAKE CANADA PAY FOR IT!” “When Canada sends its water, they’re not sending their best drinking water…They’re bringing sleet. They’re bringing floods. The water's toxic.” (It's just a joke that I came up with.)
5. One should make his/her signature text small; that way (s)he can cram more text into the signature.
6. New [scratchblocks] idea each week! (Thanks to Bright-Idea (Read her signature.) for inspiration/the general idea.) Here's the archive:
Note: I stopped this because of signature character limits.
Week of 1-23-2017: Hat-caps tinyurl.com/htauyu2
Week of 1-16-2017: Country-colored scratchblocks tinyurl.com/z8lz6c4
Week of 1-9-2017: Drop-down booleans tinyurl.com/j5d3k6l
Week of 1-2-2017: Block->string inputs and more truth values tinyurl.com/jqu7avs
- dvargasews
- Scratcher
500+ posts
Better Custom Blocks
That's not a perfect workaround because the code would only run once.Well, really, I think there should also be custom hat blocks and cap blocks.custom hat ::custom hatis the same aswhen<custom boolean ::custom>is true ::events hatandcustom cap ::custom capis the same ascustom stack ::customSo custom hat blocks are programed as boolean blocks and custom cap blocks are programed as stack blocks.
stop [this script v]custom stack::custom
stop [this script v]
is probably too easy of a workaround to a custom cap for the ST to implement, if they implement this suggestion at all. Besides, your custom hat also has a very easy workaround;when flag clicked
wait until <custom bool::custom>
...::cap
Please read my signature! It might explain some lingo that I used in my post or comment. However, not all of it shows, so you have to highlight the entire bottom of the post, from “Please read my signature!” to where it says report, and copy and paste in into a new sheet or tab or whatever.
I can't decide my signature between:
1. I'm a grammar stickler, and my pet peeve is when people use good as an adverb.
2. I have lots of [creativity]original ideas[/creativity]. [creativity]This[/creativity] is one of those ideas.
3. If I used this symbol: ⸮ in my comment, please look it up before doing anything else.
4. {Minot, North Dakota/Donald Trump parodies} “WE'RE GONNA BUILD A DAM AND MAKE CANADA PAY FOR IT!” “When Canada sends its water, they’re not sending their best drinking water…They’re bringing sleet. They’re bringing floods. The water's toxic.” (It's just a joke that I came up with.)
5. One should make his/her signature text small; that way (s)he can cram more text into the signature.
6. New [scratchblocks] idea each week! (Thanks to Bright-Idea (Read her signature.) for inspiration/the general idea.) Here's the archive:
Note: I stopped this because of signature character limits.
Week of 1-23-2017: Hat-caps tinyurl.com/htauyu2
Week of 1-16-2017: Country-colored scratchblocks tinyurl.com/z8lz6c4
Week of 1-9-2017: Drop-down booleans tinyurl.com/j5d3k6l
Week of 1-2-2017: Block->string inputs and more truth values tinyurl.com/jqu7avs
- peppermintpatty5
- Scratcher
1000+ posts
Better Custom Blocks
Snap! has these.We're aware of that! Just that it'd be nice if Scratch had it too
- HoofEMP
- Scratcher
100+ posts
Better Custom Blocks
That's not a perfect workaround because the code would only run once.Well, really, I think there should also be custom hat blocks and cap blocks.custom hat ::custom hatis the same aswhen<custom boolean ::custom>is true ::events hatandcustom cap ::custom capis the same ascustom stack ::customSo custom hat blocks are programed as boolean blocks and custom cap blocks are programed as stack blocks.
stop [this script v]custom stack::custom
stop [this script v]
is probably too easy of a workaround to a custom cap for the ST to implement, if they implement this suggestion at all. Besides, your custom hat also has a very easy workaround;when flag clicked
wait until <custom bool::custom>
...::cap
when flag clicked
forever
wait until <custom bool::custom>
...
end