Discuss Scratch

Orangeswing6400-pear
Scratcher
20 posts

How to use a scratch block?

How to use?

EXAMPLE
FloralAnimator
Scratcher
500+ posts

How to use a scratch block?

Its mainly to show a script,like
whenclicked
. . .

Its used to explain a script.

Used mainly in the suggestions/advance topics/or help with scripts forums.
p-p-p-p-p-p-p-p-p-p-
Scratcher
1000+ posts

How to use a scratch block?

Are you asking about Scratch blocks in general? In that case I have 2 solutions.
1:
Welcome to scratch! Here is a little tutorial to the blocks.
A. Event blocks.
Event blocks look like this:
whenclicked
These blocks start off a line of code. You can see that you can't place anything above.
B. script code.
These are just blocks that do things. they often look like this:
. . .
They initiate a function.
C. Inputs.
Inputs look like this:
-0
They return a value. They can be variables too. variables can be easily changed. they only fit in () parts of the script code.
D. booleans
booleans look like this:
=
They only have 2 outputs, true and false. they can be used in <> spaces.
You can also use the Help with scripts forum for more help. Thank you for reading!
-InsanityPlays-
Scratcher
1000+ posts

How to use a scratch block?

you place it on a redstone block and it activates
To use a scratch block, you need to drag it on a script starting with an event block. For example:
whenclickedgotox:0y:0
will move the sprite to the middle when the green flag is clicked.
You can also click the block.
fdreerf
Scratcher
1000+ posts

How to use a scratch block?

Guys, considering they already have 2 projects, I think they know how to use the coding interface.
xXRedTheCoderXx
Scratcher
1000+ posts

How to use a scratch block?

Are you asking about the pink custom blocks?
Orangeswing6400-pear
Scratcher
20 posts

How to use a scratch block?

xXRedTheCoderXx wrote:

Are you asking about the pink custom blocks?
YES!
Orangeswing6400-pear
Scratcher
20 posts

How to use a scratch block?

fdreerf wrote:

Guys, considering they already have 2 projects, I think they know how to use the coding interface.
I mean the pink weird custom blocks
defineTHIS
size
I don't know why but scratch needs to update their forum blocks but you know what i am talking about

Last edited by Orangeswing6400-pear (Oct. 4, 2020 01:50:40)

Wyan100
Scratcher
1000+ posts

How to use a scratch block?

Oh so you want to know how Custom Blocks work!

Allow me to explain:

Basically there the same as “broadcast and wait” blocks except for 2 things, the First thing is that there's a feature that lets you make a Custom Block “Run without Screen Refresh” which means that the things inside the block will happen instantly. The second thing is that when you are making the block you can add Reporters and Booleans, which you fill with blocks and then can be used many times over in the Script underneath the Custom Block. Example:

Examplefoo1=1andfoo2=2andfoo3=3andfoo4=4

defineExamplefooiffoothensayHere's a nifty way to reduce the Number of blocks in a Project!
Vanilla2011
Scratcher
500+ posts

How to use a scratch block?

So for example, if you want to make a project that repeatedly makes the sprite jump, instead of doing this every time:
changeybynchangeybyjoin-n
you could just do this:
jumpn
And don't forget to define it!(You only need to define it one time)
definejumpnchangeybynchangeybyjoin-n
If you still don't understand, maybe this link can help.

Don't worry, I used to misunderstand these blocks too when I was a new Scratcher

Last edited by Vanilla2011 (Oct. 4, 2020 05:42:37)

Orangeswing6400-pear
Scratcher
20 posts

How to use a scratch block?

Wyan100 wrote:

Oh so you want to know how Custom Blocks work!

Allow me to explain:

Basically there the same as “broadcast and wait” blocks except for 2 things, the First thing is that there's a feature that lets you make a Custom Block “Run without Screen Refresh” which means that the things inside the block will happen instantly. The second thing is that when you are making the block you can add Reporters and Booleans, which you fill with blocks and then can be used many times over in the Script underneath the Custom Block. Example:

Examplefoo1=1andfoo2=2andfoo3=3andfoo4=4

defineExamplefooiffoothensayHere's a nifty way to reduce the Number of blocks in a Project!
I do not get the example part like the foo part

defineIneedabitofaneasierwaytounderstandthis
Orangeswing6400-pear
Scratcher
20 posts

How to use a scratch block?

The custom blocks are complicated but also i am also making my own project!
Wyan100
Scratcher
1000+ posts

How to use a scratch block?

Orangeswing6400-pear wrote:

The custom blocks are complicated but also i am also making my own project!

If you still don't understand then I would recommend making a New Project experimenting with the Blocks yourself

Last edited by Wyan100 (Oct. 5, 2020 01:30:01)

MrFluffyPenguins
Scratcher
1000+ posts

How to use a scratch block?

When you create a custom block, you will get this in your coding area:
define

Place blocks under the “define” block like this:
definemove10steps
Then, you can use the block in the “My Blocks” section like this:
whenclickedexampleofacustomblock
Then, when activated, the sprite would move 10 steps.

Is that helpful?

Last edited by MrFluffyPenguins (Oct. 5, 2020 17:52:05)

Powered by DjangoBB