Block types

Scratch is a "block-based" programming language. This means instead of writing lines of code to program, we use "blocks". Each block has a specific category that describes what its purpose is. Sprites are the objects that perform actions in a project and these blocks tell the sprites what to do. Code blocks can also tell a stage or backdrop how to behave.

The different types of code blocks:

  • Define the movement of sprites
  • Change the appearance of sprites. Gives the ability to change costumes and apply graphic effects.
  • Play audio by recording sounds, using Midi notes and more.
  • Trigger scripts or series of code blocks. Consists mainly of hat blocks which start a script.
  • Dictate the flow of a project. Provide mechanism for "looping" different blocks and scripts.
  • Let multiple sprites interact with themselves and/or the stage. Can determine how two sprites collide for example.
  • Allow various mathematical functions within a project. Can be used to modify variables and strings.
  • Used to store data in projects, like a name or a score.

My Blocks

  • You can create your own blocks!

Extension Blocks

  • At the bottom left of the screen. These blocks let you connect to hardware or access a number of other block types like the pen, or music blocks.
This guide was first published on Jan 18, 2019. It was last updated on Jan 18, 2019. This page (Block types) was last updated on May 12, 2019.