Script

Controlling LED with space key

script is a collection or stack of blocks that all interlock with one another. The blocks and their order are very important, as they determine how sprites interact with each other and the backdrop

Use

Scripts are easy to work with. Some “rules” are as follows:

  • To create a script, one simply has to drag blocks out of the Block Palette and assemble them.
  • To assemble blocks, they must be dragged on, below, or in another block. (Except for Hat Blocks.)
  • To disassemble blocks, they must be dragged apart.
  • To remove a script, drag it into any of the block palettes, or right-click the hat block and press delete.
  • To start a single script just click on it.

Scripts can be edited in the scripts tab of every sprite and the Stage.

Structure

Every block shape is designed so that it can do one or more of the following:

  • Start a script
  • Add to the end of a script
  • End a script
  • Fit inside other blocks.
  • Contain other blocks.

Because of that, blocks can be assembled to create a script like a jigsaw puzzle. This prevents syntax errors.

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

This helped
This didn't help

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

Introduction PictoBlox is a Scratch 3.0-based graphical programming software that is the ideal companion for the setting the first step into the world of programming.…
evive-brain

Interfacing evive with PictoBlox

Introduction You can write scripts in PictoBlox for numerous projects that can be carried out using evive. This tutorial will discuss how to interface evive with PictoBlox,…
All articles loaded
No more articles to load
PictoBlox Supported Boards
Extensions
Close Menu
×

Cart