Discuss Scratch
- Discussion Forums
- » Suggestions
- » New Blocks
- FireyDeath4
-
100+ posts
New Blocks
I have some ideas for some new blocks. I'll give you the details with them.
Type: Operators
Rounds the first number to the nearest number that divides by the second number
For instance, 27 round 5 = 25, 13 round 10 = 10
Type: Operators
Reports the first number to the power of the second number
For instance, 4 ^ 2 = 16, 2 ^ 3 = 8
Type: Operators
Reports the first number to the root of the second number
For instance, 9 √ 2 = 3, 8 √ 3 = 2
Type: Control
Hides the mouse if it is not touching the settings bar above the Stage. This is useful if you want something to take the place of the real cursor.
Type: Control
Shows the mouse if it is not visible
Type: Operators
Reports true if the first input contains the second input. For instance “Hello World” does contain “lo W”.
Type: Motion
Points the character toward the specified point
Type: Sensing
Reports the color at the specified point in hue, saturation, brightness, red, green or blue
Type: Variables
Adds a cloud variable to the list of variables
Type: Variables
Reports the name of the selected variable. Useful for “if” blocks
Type: Lists
Reports the name of the selected variable. Useful for “if” blocks
Type: Control
Enables right click control over stage without right-click menu
Type: Operators
Reports all characters of the third input between the first input and second input
Type: Sensing
Reports true if the selected mouse button is pressed
There. Too much, eh? I couldn't control the color of the blocks, and I couldn't make the starting block, "when this sprite clicked with button", so yeah. It took me a long time! I am talking to the Scratch Team. I want these blocks to appear in Scratch soon. And no, I'm not trying to be a bossy-pants.
Shortcut? No
Type: Operators
Rounds the first number to the nearest number that divides by the second number
For instance, 27 round 5 = 25, 13 round 10 = 10
Shortcut? No
Type: Operators
Reports the first number to the power of the second number
For instance, 4 ^ 2 = 16, 2 ^ 3 = 8
Shortcut? No
Type: Operators
Reports the first number to the root of the second number
For instance, 9 √ 2 = 3, 8 √ 3 = 2
Shortcut? No
Type: Control
Hides the mouse if it is not touching the settings bar above the Stage. This is useful if you want something to take the place of the real cursor.
Shortcut? No
Type: Control
Shows the mouse if it is not visible
Shortcut? Yes
Type: Operators
Reports true if the first input contains the second input. For instance “Hello World” does contain “lo W”.
Shortcut? Probably
Type: Motion
Points the character toward the specified point
Shortcut? No
Type: Sensing
Reports the color at the specified point in hue, saturation, brightness, red, green or blue
Shortcut? No
Type: Variables
Adds a cloud variable to the list of variables
Shortcut? No
Type: Variables
Reports the name of the selected variable. Useful for “if” blocks
Shortcut? No
Type: Lists
Reports the name of the selected variable. Useful for “if” blocks
Shortcut? No
Type: Control
Enables right click control over stage without right-click menu
Shortcut? Yes
Type: Operators
Reports all characters of the third input between the first input and second input
Shortcut? No
Type: Sensing
Reports true if the selected mouse button is pressed
There. Too much, eh? I couldn't control the color of the blocks, and I couldn't make the starting block, "when this sprite clicked with button", so yeah. It took me a long time! I am talking to the Scratch Team. I want these blocks to appear in Scratch soon. And no, I'm not trying to be a bossy-pants.

- MushroomMan99
-
100+ posts
New Blocks
Please make a separate post for each block. This is just going to confuse people.
- DaSpudLord
-
1000+ posts
New Blocks
Semi-support, workaroundable.
Support.
No support, workaroundable.
Support.
No support, create all cloud vars before you release the project. In fact, you can actually create a cloud list with just one cloud variable.
No support. If you don't know the name, then what are you going to put in the dropdown? The name? If you know the name, then why do you need that block?
Semi-support, but what does the “if touching stage” mean? All sprites are constantly touching the stage.
I'm confus…
Support, except it should be left and right instead of primary, like this-
- FireyDeath4
-
100+ posts
New Blocks
Sorry.
Here's what I mean.
Name of Variable is useful for if you're adding extra variables with hacked blocks. It also goes for lists.
The reason why I used:
By the way, how did you control the block colour in the signature thing? I'd give ultra credit if you told me how.
Here's what I mean.
Name of Variable is useful for if you're adding extra variables with hacked blocks. It also goes for lists.
The reason why I used:
is because if you wanted to check if “Hello” contains “llo”, you'd have to do all of this:
As you can see, the site cannot cope with the giant boolean.
I mean this:
By the way, how did you control the block colour in the signature thing? I'd give ultra credit if you told me how.
- DaSpudLord
-
1000+ posts
New Blocks
1. Okay, but what would go in the dropdown? Also, no support for adding variables and lists- create them beforehand. You can also use a list, which can have slots added onto it. Sorry.
Here's what I mean.
Name of Variable is useful for if you're adding extra variables with hacked blocks. It also goes for lists.
The reason why I used:is because if you wanted to check if “Hello” contains “llo”, you'd have to do all of this:As you can see, the site cannot cope with the giant boolean.I mean this:
By the way, how did you control the block colour in the signature thing? I'd give ultra credit if you told me how.
2. But that only works for 5-letter words. The real workaround would look like this-
3. That block looks a little long. Also, how would someone bring up the right-click menu if it was disabled by the project?…
4. Just some scratchblocking knowledge. To color your blocks, at the end of each block, add two colons (a colon is the symbol with the two little stacked dots, like this –> : <– and you're adding two of those), then add the name of the block pallete section that you want the block to be colored like. For example, here are two blocks and the corresponding code-
jump
jump :: motion
You can also force existing blocks to appear in a different color using this method-
move (10) steps
mote (10) steps :: looks
Last edited by DaSpudLord (Aug. 13, 2015 02:45:55)
- FireyDeath4
-
100+ posts
New Blocks
What I mean is, if one creates an account, you're going to need extra variables or lists. Because if you don't make extra ones in-game, you can only limit the amount of cloud accounts you can have. Get it now?
- FireyDeath4
-
100+ posts
New Blocks
The way someone would bring up the right-click menu is only if the cursor is not touching the Stage. So, you can right-click menu anywhere in these places: script, titlebar, etc.
- DaSpudLord
-
1000+ posts
New Blocks
No, I do get that, but this can actually be achieved by using a cloud list engine. You can add more rows to lists as the project runs. What I mean is, if one creates an account, you're going to need extra variables or lists. Because if you don't make extra ones in-game, you can only limit the amount of cloud accounts you can have. Get it now?
BTW, updated last post.
Last edited by DaSpudLord (Aug. 13, 2015 02:44:18)
- FireyDeath4
-
100+ posts
New Blocks
Nevermind, I found out how.
Well, now I know, I forgot a few blocks.
There.
Well, now I know, I forgot a few blocks.
Reports how many of the first input are in the second input
Randomly creates an anagram of the input
Starts the script if the sprite is clicked with the selected mouse click
There.
- DaSpudLord
-
1000+ posts
New Blocks
1. Please don't blockspam. Thanks! Nevermind, I found out how.
Well, now I know, I forgot a few blocks.Reports how many of the first input are in the second inputRandomly creates an anagram of the inputStarts the script if the sprite is clicked with the selected mouse click
There.
2. Please create a new thread for each new set of suggestions- that way everything stays neat and tidy.
- Paddle2See
-
1000+ posts
New Blocks
Please make a new topic for each block you are suggesting so that the conversation doesn't get confused. Also, please read the “sticky” topics at the top of the Suggestions section - they have some guidance on suggestions that have already been rejected - and the reason why!
Finally, please do a search to see if there is already an existing topic for your suggestion - if there is, please use it rather than making another.
Thanks - and keep thinking of improvements
Finally, please do a search to see if there is already an existing topic for your suggestion - if there is, please use it rather than making another.
Thanks - and keep thinking of improvements

- Discussion Forums
- » Suggestions
-
» New Blocks