In other languages

Help the wiki!

The Scratch Wiki is made by and for Scratchers. Do you want to contribute?

Learn more about joining as an editor!

See discussions in the Community Portal

Backpack

A user's backpack.

The backpack is a feature of the Scratch 2.0 project editor that allows users to drag and drop costumes, sprites, sounds, and scripts from other projects into it and then drag and drop them easily into their project.[1] This simplifies remixing. The backpack is collapsible, so, if the user is not using it at the moment, it is not taking up space.

This feature is different from previous versions, because even if a project is downloaded, the files used within it are not easily accessible for use in another project, and the user must export the media first.

The code contents in a user's backpack (in the form of JSON) can be seen in
https://scratch.mit.edu/internalapi/backpack/USERNAME-HERE/get/

However, you can only access your own backpack, and to prove your identity you must be logged in. If you try to access somebody else's backpack, you will see a 403 error.

Adding Media

To add media to the backpack, open the backpack by clicking on the "Backpack" tag at the bottom of the screen. Then drag a sprite, sound, costume, or script fragment into it. There is no limit as to how much media the backpack can contain. Media can also be clicked and dragged around throughout the backpack for organization. To remove media from the backpack, right-click on the desired item and select "delete".

Adding Scripts through the Forums

Warning Note: This feature is only usable with scripts that use blocks included in the current version of Scratch (2.0). If you do not see the "Add to Backpack" button, it is probably because the script contains an undefined (red) block.

To add scripts to your backpack from the Discussion Forums, click the "Add to Backpack" button next to a script. It will ask you what you want to name the script, and once you click "Okay", it will be added to your backpack.

Using Media

To remove media from the backpack, in the same or another project, one can open the backpack by clicking on the tab, the same way as before. Then, one can click and drag the media out of the backpack and into the project editor. Specific types of media must be dragged into specific areas of the project editor. For example, one cannot drag an image into the sound editor, as it will simply disappear and cause no function. When dragging media from the backpack, the object is not removed from the backpack but duplicated.

If an item icon has a question mark on it, it means that the item has failed to be fully be put in the backpack. It does nothing when dragged to the project.

Exporting

Some media can still be exported from the backpack. The following media can be exported by right-clicking on its icon and selecting "Save to Local File":

  • costumes

Information

  • The backpack shows an icon or image of the media in it, along with some information about it.
    • For a sprite, it has the thumbnail of the sprite as it was dragged into the backpack, along with the name of the sprite.
    • For a costume, it has a thumbnail of the costume, along with the name.
    • For a sound, it has a sound icon, along with the sound's name.
    • For a script, it has a thumbnail of the script, and the text "Script".

Glitch

There has been a glitch which the Scratch Editor ignores some sounds when dragged out of the backpack.[2] The only workarounds are exporting sounds and then importing the sound in or making a random sprite with the sound, dropping it into the backpack, and duplicating it into a new project.

References

  1. http://blog.scratch.mit.edu/2012/02/scratch-20-project-page-and-project.html
  2. http://scratch.mit.edu/discuss/topic/10666/

See Also

  • This page was last modified on 9 December 2016, at 20:47.