skip to content
Introduction to Coding

Introduction to Events Blocks

Events blocks are the blocks that control events and the triggering of scripts. There are 8 Event blocks in Scratch 3.0.

Discussion on Event Blocks in Scratch

Arun: Hello Raj! Today I will tell you about the Event blocks and their functions.

Raj: I am ready. Let’s start!

Arun: Event blocks control events and trigger scripts. There are 8 Event blocks in Scratch 3.0.

Arun: Scratch 3.0 has the following six Event Hat Blocks:

  1. [when green flag clicked] – When the green flag is clicked, the script activates.
  2. [when [space v] key pressed] – When the specified key is pressed, the script activates. The event will only be triggered again after the key is released.
  3. [when this sprite clicked] – When the sprite is clicked, the script activates.
  4. [when backdrop switches to [backdrop1 v]] – When the backdrop switches to the one chosen, the script activates.
  5. [when [loudness v] > (10)] – When the first value is greater than the second value, the script activates.
  6. [when I receive [message1 v]] – When the broadcast is received, the script activates.

Arun: Scratch 3.0 also has the following two Event Stack blocks:

  1. [broadcast [message1 v]] – Sends a broadcast throughout the Scratch program, activating [when I receive [message1 v]] blocks that are set to that broadcast.
  2. [broadcast [message1 v] and wait] – Like the [broadcast [message1 v]] block, but pauses the script until all scripts activated by the broadcast are completed.

Arun: These blocks are essential for creating interactive and dynamic projects in Scratch. They help in controlling when and how scripts are executed based on different events.

Raj: This is really useful, Arun! Now I understand how to control events in my Scratch project. Thanks for explaining these blocks.

Arun: My pleasure, Raj! Next time, we will learn about Control blocks to further enhance our project.

Raj: Looking forward to it!