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.

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

Related Tutorials, Projects & Documentation
Dabble Home Connected

Getting Started with Dabble

Getting Started with Dabble Introduction Dabble App transforms your Smartphone into a virtual I/O device and lets you control hardware using Bluetooth, communicate with it,…
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..
All articles loaded
No more articles to load
PictoBlox Supported Boards
Extensions
Close Menu
×

Cart