Revision as of 18:51, 24 September 2021 by CrazyBoy826 (talk | contribs) (mistake)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

An image of a sprite appearing on both the stage and the sprite list.
A sprite designed in the Scratch 1.4 paint editor.

A sprite is an object or character in Scratch that can be programmed to perform actions based on scripts in a project using blocks. Each sprite has its own scripts, costumes, and sounds, and can move on its own. In the interface, sprites appear in the Sprites Pane below the stage.

Creating a Sprite

The buttons for creating a new sprite.

The bar above the sprite list has four buttons for creating sprites. They are:

  • The search button allows one to choose a sprite from the library.
  • The paintbrush button creates a blank sprite with an empty costume.
  • The surprise button creates a random sprite.
  • The upload button allows one to upload a sprite from the computer.

Before May 13, 2021, the camera button allowed taking pictures with a device, but the feature was removed to discourage face reveals.[1]

When a sprite is created, it will be placed at a random location on the Stage, usually around the center, and open the sprite in the tab one is currently viewing.

Scripting

Each sprite in a Scratch project has an area for scripts, called the scripts area. Users may program sprites with blocks. Each sprite has scripts that function and run independently, and they can communicate with each other through broadcasts, variables, or sensing blocks.

The look of a sprite can be changed by using costumes. Each sprite has at least one costume, and costumes may be changed using Looks blocks. Costumes may be added from the Costumes Library or drawn, and they may be edited with the Paint Editor.

Sprites may also have sounds. Sounds can be recorded, added from the Sound Library, or uploaded, and may be edited with the Sound Editor.

Sprites (with all of their scripts, costumes, and sounds) can be exported, and then imported into another project if desired. This is achieved by right-clicking on a sprite's thumbnail in the sprite pane and then selecting "save to local file" in the pop-up menu. A sprite can also be dragged into the backpack and dragged out into another project for transporting. However, this will not save the sprite to one's computer.

Sprite Packs

Main article: Sprite Pack

A sprite pack, also known as a sprite collection, is a type of project that contains sprites for usage of other users. A sprite pack usually has a theme, but does not require one. Example themes include cars, dogs, dinosaurs, etc. A sprite pack can also contain sprites from existing video games.

Changing the Default Sprite

Main article: How to Change the Default Sprite

By default, creating a new project will provide a sprite with an image of the Scratch Cat without any scripts. This can only be changed in Scratch 1.4 by creating your own sprite, exporting it under the name default.sprite, and placing it in the costumes folder.

See Also

References

Cookies help us deliver our services. By using our services, you agree to our use of cookies.