Discuss Scratch

hello-world-123
Scratcher
9 posts

What all the blocks do: a guide to both the siple, and the more complex blocks in scratch

Don't know what a blocks does? As someone who's been using scratch since they were 7 years old, I have a little bit more experience with blocks like broadcast and custom blocks that are less well-known. I will do my best to explain all of the simple blocks, and the .ore complex ones per requests.
hello-world-123
Scratcher
9 posts

What all the blocks do: a guide to both the siple, and the more complex blocks in scratch

when green flag clicked

This is the simplest, but yet most important block in scratch. Without it, most projects wouldn't be able to do anything at all. This block is the beginning. This will make an animation start, or a variable reset to the starting amount. You need this for both the simplest and most complex projects to work. Can you find any projects that don't use this?
cat3du
Scratcher
82 posts

What all the blocks do: a guide to both the siple, and the more complex blocks in scratch

Where is more we need more or no sticky
hello-world-123
Scratcher
9 posts

What all the blocks do: a guide to both the siple, and the more complex blocks in scratch

I will post more, don't worry!
Tubeonscratch
Scratcher
100+ posts

What all the blocks do: a guide to both the siple, and the more complex blocks in scratch

hello-world-123 wrote:

when green flag clicked

This is the simplest, but yet most important block in scratch. Without it, most projects wouldn't be able to do anything at all. This block is the beginning. This will make an animation start, or a variable reset to the starting amount. You need this for both the simplest and most complex projects to work. Can you find any projects that don't use this?
this one
Tubeonscratch
Scratcher
100+ posts

What all the blocks do: a guide to both the siple, and the more complex blocks in scratch

MOTION
(Keep in mind that motion blocks are not available on the stage


move [n] steps
This block moves a sprite n steps in the direction it is currently facing. If the direction is 90, it moves right, if it was 0, it moves up, if it was -90, it moves left etc.

turn cw [n] degrees
This block changes the sprite's direction by n, hence the clockwise arrow.

turn ccw [n] degrees 
This block changes the sprite's direction by -n, hence the counter-clockwise arrow.

go to (random position v)
This block moves the sprite to
  • a random x & y coordinate (random position)
  • where your mouse (or finger) is, but if your mouse or finger is not on the screen, then the sprite moves to the edge (mouse-pointer)
  • the selected sprite (anything else)

go to x: [n] y: [m]
This block moves the sprite to the selected x and y coordinates

glide [s] secs to (random position v)
This block takes s seconds to move to
  • a random x & y coordinate (random position)
  • where your mouse (or finger) is, but if your mouse or finger is not on the screen, then the sprite moves to the edge (mouse-pointer)
  • the selected sprite (anything else)

Last edited by Tubeonscratch (Yesterday 19:45:09)

hello-world-123
Scratcher
9 posts

What all the blocks do: a guide to both the siple, and the more complex blocks in scratch

turn cw (15) degrees
turn ccw (15) degrees

These blocks make a sprite rotate. By adjusting the number, you can make the sprite rotate any amount. Try coding a sprite with these blocks, and then experiment around with the numbers. What happened? (Don't respond with your answer, but you can ask questions if you have any).
when green flag clicked
turn cw (10) degrees
wait (1) secs
turn ccw (20) degrees
wait (1) secs
turn cw (30) degrees
wait (1) secs
turn ccw (40) degrees
hello-world-123
Scratcher
9 posts

What all the blocks do: a guide to both the siple, and the more complex blocks in scratch

Tubeonscratch wrote:

move [n] steps
This block moves a sprite n steps in the direction it is currently facing. If the direction is 90, it moves right, if it was 0, it moves up, if it was -90, it moves left etc.

turn cw [n] degrees
This block changes the sprite's direction by n, hence the clockwise arrow.

turn ccw [n] degrees 
This block changes the sprite's direction by -n, hence the counter-clockwise arrow.
I am sorry @Tubeonscratch but I didn't realize you already explained the rotate blocks.
Tubeonscratch
Scratcher
100+ posts

What all the blocks do: a guide to both the siple, and the more complex blocks in scratch

hello-world-123 wrote:

Tubeonscratch wrote:

move [n] steps
This block moves a sprite n steps in the direction it is currently facing. If the direction is 90, it moves right, if it was 0, it moves up, if it was -90, it moves left etc.

turn cw [n] degrees
This block changes the sprite's direction by n, hence the clockwise arrow.

turn ccw [n] degrees 
This block changes the sprite's direction by -n, hence the counter-clockwise arrow.
I am sorry @Tubeonscratch but I didn't realize you already explained the rotate blocks.
it's fine

Powered by DjangoBB