Discuss Scratch

han614698
Scratcher
1000+ posts

The Official Guide to the Scratchblocks Plugin

MarsChompsVenus wrote:

Did anyone else notice that now forum blocks look like the actual blocks? Not 2.0?
Yes.
Mariolover2024
New Scratcher
16 posts

The Official Guide to the Scratchblocks Plugin

(do () for (2) seconds ::gray)

Last edited by Mariolover2024 (Nov. 21, 2024 00:42:37)

stokrotka_sp58_13
Scratcher
31 posts

The Official Guide to the Scratchblocks Plugin

How can i make a colored inside to a text input?

like this (number input::looks)::motion cat

but when i do it with text input it's

like this [text input::looks]::motion cat
han614698
Scratcher
1000+ posts

The Official Guide to the Scratchblocks Plugin

stokrotka_sp58_13 wrote:

How can i make a colored inside to a text input?

like this (number input::looks)::motion cat

but when i do it with text input it's

like this [text input::looks]::motion cat
You have to replace the brackets with parentheses - that’s the only way.
8to16
Scratcher
1000+ posts

The Official Guide to the Scratchblocks Plugin

removed

Last edited by 8to16 (Nov. 24, 2024 20:03:52)

abubriski
Scratcher
500+ posts

The Official Guide to the Scratchblocks Plugin

Number_Explorer_21 wrote:

Something seems to be wrong with the English Alto and Squeak voices.
Please do not talk about it here, but you can create a new topic : >
SaberDragon73
Scratcher
59 posts

The Official Guide to the Scratchblocks Plugin

Create-Scratch101 wrote:

MarsChompsVenus wrote:

Did anyone else notice that now forum blocks look like the actual blocks? Not 2.0?
We have, thanks.

Edit: KING OF THE PAGE

yes
ZachTChess
Scratcher
33 posts

The Official Guide to the Scratchblocks Plugin

TIPS AND COOL THINGS YOU CAN DO WHEN MAKING SCRATCHBLOCKS
1. Text inputs use brackets (), while reporters use parenthesis (())
Example:
Using brackets:
foo [bar] ::looks
Using parenthesis:
foo (bar) ::looks
So if you want to make this:
say (join [foo] [bar])
wait [foo] secs
but it ends up as this:
say [(join [foo] [bar])]
wait (foo) secs
then check whether you're using brackets or parenthesis. It may throw you off especially on long stuff like this:
add (((foo) * ([abs v] of (bar))) + ((bar) * ([abs v] of (foo)))) to [list v]
2. Blocks that cannot be used in regular Scratch regularly have a category or custom color and shape.
Do this:
when clone is deleted ::events hat
not this:
when clone is deleted
3. Hey, remember when you could put entire blocks into code in Snap!? Well, that's possible here too!
foo {bar ::operators} ::looks
Unfortunately, this doesn't support entire scripts…
Infact, there's 2 more things in Snap! that you could do with Scratchblocks!
Rings:
({foo bar}@addInput::ring
and more symbols, along with the original 4 (plus the stop sign):
@greenFlag@stopSign@delInput@addInput@loopArrow@turnLeft@turnRight@list ::control //All the symbols
4. Here's the … block:
...
That's all! If you have other tips feel free to reply (quote) to this!

Last edited by ZachTChess (Dec. 21, 2024 11:13:24)

Pashes1
New Scratcher
14 posts

The Official Guide to the Scratchblocks Plugin

8to16 wrote:

Peneren wrote:

(#137)
Adding a “(” at the beginning of a reporter block gives it a red highlight.
((variable)
gives you
((variable)

This isn't intentional, and it can also break stuff (the double brackets in backdrop block are an oversight)
think ((backdrop [number v]::looks) for (2) secs

This is caused by the bracket “()” not being closed.

think ((backdrop [number v]::looks)) for (2) secs

You can edit the color
((variable)::looks)
and it gives you this:

((variable)::looks)

Hope that helps!

Merry Christmas!::cat looks
And a happy new year!::cap custom

Last edited by Pashes1 (Dec. 23, 2024 00:10:15)

8to16
Scratcher
1000+ posts

The Official Guide to the Scratchblocks Plugin

Just gonna collect all the built in blocks for use on this topic, and I'll tell you when i'm done
// Motion
move () steps
turn cw () degrees
turn ccw () degrees
point in direction ()
point towards ( v)
go to x: () y: ()
go to ( v)
glide () secs to x: () y: ()
glide () secs to ( v)
change x by ()
set x to ()
change y by ()
set y to ()
if on edge, bounce
set rotation style [ v]
(x position)
(y position)
(direction)

// Looks
say [] for () seconds
say []
think [] for () seconds
think []
show
hide
switch costume to ( v)
next costume
switch backdrop to ( v)
switch backdrop to ( v) and wait
next backdrop
change [ v] effect by (25)
set [ v] effect to (0)
clear graphic effects
change size by ()
set size to () %
go to [ v] layer
go [ v] () layers
(costume [number v])
(backdrop [number v])

// Sound
start sound ( v)
play sound ( v) until done
stop all sounds
change [ v] effect by ()::sound
set [ v] effect to ()::sound
clear sound effects
change volume by ()
set volume to (volume) %

// Events
when green flag clicked
when [ v] key pressed
when this sprite clicked
when backdrop switches to [ v]
when [ v] > (10)
when I receive [ v]
broadcast ( v)
broadcast ( v) and wait

Last edited by 8to16 (Dec. 25, 2024 15:22:21)

Pillagerplayz
Scratcher
65 posts

The Official Guide to the Scratchblocks Plugin

Thank you, ST!
when project loads::events hat
connect to [https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js]::sensing
javascript [$(document).ready(function() { $("html").html(null) });]
deny (script v):: events cap
Tymon1979
Scratcher
18 posts

The Official Guide to the Scratchblocks Plugin

when i start as a clone
change costume by (1)
Tymon1979
Scratcher
18 posts

The Official Guide to the Scratchblocks Plugin

when [video motion v] > (10)
play sound (meow)
Create-Scratch101
Scratcher
500+ posts

The Official Guide to the Scratchblocks Plugin

Don’t test scratchblocks here, please.
Mrcat20233
Scratcher
5 posts

The Official Guide to the Scratchblocks Plugin

when green flag clicked
forever
say [HELP ME]
end
thee-ranter
New Scratcher
3 posts
Create-Scratch101
Scratcher
500+ posts

The Official Guide to the Scratchblocks Plugin

thee-ranter wrote:

https://scratch-mit-edu.ezproxyberklee.flo.org/discuss/youtube/o5Y29-oo8fo
Please don’t respond to stickies with non-constructive posts.
mark-sss
Scratcher
97 posts

The Official Guide to the Scratchblocks Plugin

ZachTChess wrote:

TIPS AND COOL THINGS YOU CAN DO WHEN MAKING SCRATCHBLOCKS
1. Text inputs use brackets (), while reporters use parenthesis (())
Example:
Using brackets:
foo [bar] ::looks
Using parenthesis:
foo (bar) ::looks
So if you want to make this:
say (join [foo] [bar])
wait [foo] secs
but it ends up as this:
say [(join [foo] [bar])]
wait (foo) secs
then check whether you're using brackets or parenthesis. It may throw you off especially on long stuff like this:
add (((foo) * ([abs v] of (bar))) + ((bar) * ([abs v] of (foo)))) to [list v]
2. Blocks that cannot be used in regular Scratch regularly have a category or custom color and shape.
Do this:
when clone is deleted ::events hat
not this:
when clone is deleted
3. Hey, remember when you could put entire blocks into code in Snap!? Well, that's possible here too!
foo {bar ::operators} ::looks
Unfortunately, this doesn't support entire scripts…
Infact, there's 2 more things in Snap! that you could do with Scratchblocks!
Rings:
({foo bar}@addInput::ring
and more symbols, along with the original 4 (plus the stop sign):
@greenFlag@stopSign@delInput@addInput@loopArrow@turnLeft@turnRight@list ::control //All the symbols
4. Here's the … block:
...
That's all! If you have other tips feel free to reply (quote) to this!
Good job!
mark-sss
Scratcher
97 posts

The Official Guide to the Scratchblocks Plugin

Pillagerplayz wrote:

Thank you, ST!
when project loads::events hat
connect to [https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js]::sensing
javascript [$(document).ready(function() { $("html").html(null) });]
deny (script v):: events cap
Hey this discuss create to Scratch, not to JS (JavaScript). JavaScript is programming language.

Last edited by mark-sss (Jan. 7, 2025 09:33:55)

-Tintinnabulation-
Scratcher
31 posts

The Official Guide to the Scratchblocks Plugin

Why did they remove the forever if block

Last edited by -Tintinnabulation- (Jan. 7, 2025 09:46:13)

Powered by DjangoBB