Discuss Scratch

etywhs435gv
Scratcher
4 posts

ading new blocks to scratch

Hi Scratch Team,I have an idea that I think would make coding in Scratch a lot easier, especially for beginners. Right now, if you want to check if a number is odd or even, you have to use a tricky math formula with the mod block, which can be confusing for new users.I think it would be amazing if you added just one new green block to the Operators category. It would have a drop-down menu inside it, just like some other blocks in Scratch. When you click the rectangle menu, you can simply switch it between odd and even.This keeps the block palette clean since it is only one single block instead of two, but it would save beginners a lot of time when making toggles or game menus.Thank you for reading my idea!

Last edited by etywhs435gv (Yesterday 18:14:44)

AdaVesta_
Scratcher
1000+ posts

ading new blocks to scratch

please don't list suggestions (though I don't know if you are, because these are operator blocks)

Last edited by AdaVesta_ (Yesterday 17:55:22)

HAL95131
Scratcher
100+ posts

ading new blocks to scratch

AdaVesta_ wrote:

please don't list suggestions (though I don't know if you are, because these are operator blocks)

It is not a list, it is a single operator.

They are suggesting this:

[] is [odd v]? :: reporter :: operators // Option 1
[] is [even v]? :: reporter :: operators // Option 2

I'd also like to suggest additional properties:

[] is [prime v]? :: reporter :: operators
[] is [composite v]? :: reporter :: operators

As for stuff like natural, integer, etc. all you really need is check for a decimal or a simple greater or less than check.

Last edited by HAL95131 (Yesterday 18:49:22)

HAL95131
Scratcher
100+ posts

ading new blocks to scratch

However, I don't really know if it's necessary… I'm pretty sure you could just do:

<((my number) / (2)) = ([floor v] of ((my number) / (2))::operators)>

I think you'd use ceil for negatives, but I'm not sure.
etywhs435gv
Scratcher
4 posts

ading new blocks to scratch

I think you'd use ceil for negatives, but I'm not sure.

HAL95131 wrote:

AdaVesta_ wrote:

please don't list suggestions (though I don't know if you are, because these are operator blocks)

It is not a list, it is a single operator.

They are suggesting this:

[] is [odd v]? :: reporter :: operators // Option 1
[] is [even v]? :: reporter :: operators // Option 2

I'd also like to suggest additional properties:

[] is [prime v]? :: reporter :: operators
[] is [composite v]? :: reporter :: operators

As for stuff like natural, integer, etc. all you really need is check for a decimal or a simple greater or less than check.
no he actually warned me so i edited my suggestion and by the way this is the block i want scratch to add

Last edited by etywhs435gv (Yesterday 22:31:08)

etywhs435gv
Scratcher
4 posts

ading new blocks to scratch

HAL95131 wrote:

However, I don't really know if it's necessary… I'm pretty sure you could just do:

<((my number) / (2)) = ([floor v] of ((my number) / (2))::operators)>

I think you'd use ceil for negatives, but I'm not sure.

i know this way to track odd and even numbers but i wanted scratch to add that one new block to scratch to make coding easier and faster for scatchers

Last edited by etywhs435gv (Yesterday 22:32:08)

DeathReviews
Scratcher
100+ posts

ading new blocks to scratch

HAL95131 wrote:

AdaVesta_ wrote:

please don't list suggestions (though I don't know if you are, because these are operator blocks)

It is not a list, it is a single operator.

They are suggesting this:

[] is [odd v]? :: reporter :: operators // Option 1
[] is [even v]? :: reporter :: operators // Option 2

I'd also like to suggest additional properties:

[] is [prime v]? :: reporter :: operators
[] is [composite v]? :: reporter :: operators

As for stuff like natural, integer, etc. all you really need is check for a decimal or a simple greater or less than check.
why would they not be booleans?
etywhs435gv
Scratcher
4 posts

ading new blocks to scratch

HAL95131 wrote:

AdaVesta_ wrote:

please don't list suggestions (though I don't know if you are, because these are operator blocks)

It is not a list, it is a single operator.

They are suggesting this:

[] is [odd v]? :: reporter :: operators // Option 1
[] is [even v]? :: reporter :: operators // Option 2

I'd also like to suggest additional properties:

[] is [prime v]? :: reporter :: operators
[] is [composite v]? :: reporter :: operators

As for stuff like natural, integer, etc. all you really need is check for a decimal or a simple greater or less than check.

i dont want it to be like an input i want it to be like a bolean
purplebunny63
Scratcher
1000+ posts

ading new blocks to scratch

etywhs435gv wrote:

HAL95131 wrote:

AdaVesta_ wrote:

please don't list suggestions (though I don't know if you are, because these are operator blocks)

It is not a list, it is a single operator.

They are suggesting this:

[] is [odd v]? :: boolean :: operators // Option 1
[] is [even v]? :: boolean :: operators // Option 2

I'd also like to suggest additional properties:

[] is [prime v]? :: boolean :: operators
[] is [composite v]? :: boolean :: operators

As for stuff like natural, integer, etc. all you really need is check for a decimal or a simple greater or less than check.

i dont want it to be like an input i want it to be like a bolean
So (look at post you quoted)?

Last edited by purplebunny63 (Today 03:21:08)

jmb1293634
Scratcher
1000+ posts

ading new blocks to scratch

HAL95131 wrote:

However, I don't really know if it's necessary… I'm pretty sure you could just do:

<((my number) / (2)) = ([floor v] of ((my number) / (2))::operators)>

I think you'd use ceil for negatives, but I'm not sure.
or just
<((input::grey) mod (2)) = [0]>//for even
<((input::grey) mod (2)) > [0]>//for odd
HAL95131
Scratcher
100+ posts

ading new blocks to scratch

jmb1293634 wrote:

HAL95131 wrote:

However, I don't really know if it's necessary… I'm pretty sure you could just do:

<((my number) / (2)) = ([floor v] of ((my number) / (2))::operators)>

I think you'd use ceil for negatives, but I'm not sure.
or just
<((input::grey) mod (2)) = [0]>//for even
<((input::grey) mod (2)) > [0]>//for odd

Yes, this, which is why I don't think it's that necessary.

Powered by DjangoBB