Backpack

Use the Scratch backpack to copy scripts or sprites from other people's projects and use them in your own.  To put a sprite, script, sound, or backdrop into your backpack, you must drag them into the backpack area.

See the scratch wiki for more information: https://wiki.scratch.mit.edu/wiki/Backpack

 

Debugging

1. If you program the whole project and then test it, this makes it hard to debug and correct. Rather, use an iterative and incremental development approach:

  1. Divide the project by breaking it down to small independent goals
  2. Code one of the goals
  3. Test this goal
  4. Debug this goal
  5. Once the goal is running as expected, go back to step 2 until all the goals have been achieved.

 

2. Some people find it useful to annotate the code with comments as they go, to know what each step is supposed to do.

 

3. Insert the “say” block in a script – this will help you to see what happens step by step, and to check values.

 

Getting information

1. Click on blue “i” on a sprite in the Sprites pane on the screen to get information about the sprite. This will show the sprite info pane.

The info pane includes info about the selected sprite as well as a few tools for manipulating the sprite. It is accessed by clicking the blue "i" on a sprite in the sprites pane.

  • A sprite's name can be changed by clicking the box that contains the sprite's name.
  • The selected sprite can be manipulated by pressing one of the following buttons:
    • Can Drag In Player — Checking this will make the sprite draggable outside the editor.
    • Circular Arrow — Enables full rotation in a sprite.
    • Linear Arrow — Enables the sprite to only face left or right.
    • "-" — Disables Rotation. The sprite will remain facing 90 degrees no matter what.
  • Pressing and dragging the blue line located over the sprite will rotate the sprite.
  • Double clicking the sprite will return it to facing 90 degrees.
  • The sprite's X and Y coordinates as well as direction are listed.
  • If the pen is down, the color is shown.

2. You can get information on any block of Scratch code by right-clicking on the block.

 

Importing backgrounds

When importing backgrounds, the pixel density of the backdrop is 360x480 pixels. To fit this exactly, the pictures need to be made this size before being imported to Scratch.

 

Saving

Scratch saves automatically, but save often anyway!