Hat Block

Hat Block is a block that is designed to start a script. This makes them essential for making projects. All hat blocks are either Control blocks, Events blocks.

Hat blocks are useful in Event-Based Programming.

HatBlock

Shape

As Hat blocks are designed to start a script, they are shaped so no blocks can go on top of them — this is done by rounding the blocks’ top. The bottom of Hat blocks is the same as Stack blocks.

Use

Without Hat blocks, scripts could only be activated manually, and not at all online. Each Hat block has a different method for getting activated — this is so different scripts can be started at different times.

There are four different ways to activate a script :

  1. when the Green Flag is clicked,
  2. a key is pressed
  3. the sprite is clicked
  4. when a broadcast is received.

Hat block is also used to make Arduino programs in PictoBlox.

This work, “Hat Block”, is a derivative of “Hat Block” by Scratch, used under CC BY-SA 4.0. “Hat Block” is licensed under CC BY-SA 4.0 by STEMpedia.

Content is available under CC BY-SA 4.0 unless otherwise noted.

Related Tutorials, Projects & Documentation
PictoBlox blocks Scratch how to

Getting Started with PictoBlox

PictoBlox is a programming software based on Scratch, where you can make interactive games, animations or program robots and projects with evive, Arduino, etc..
evive-brain

Interfacing evive with PictoBlox

This tutorial discusses how to interface evive with PictoBlox, the evive palette, the two modes for writing scripts in PictoBlox, and how to upload a script to evive.
All articles loaded
No more articles to load
PictoBlox Supported Boards
Extensions
Close Menu
×

Cart