(Redirected from Costumes)

This article is about different appearances of a sprite. For the place to edit costumes, see Paint Editor. For the block, see Costume Number (block).

A costume is one out of possibly many "frames" or alternate appearances of a sprite. Sprites can change their look to any of its costumes. They can be named, edited, created, and deleted, but every sprite must have at least one costume. One of the most common uses of costumes is to make an animation for a game or other project.

Creation

There are two main ways of getting a costume or background for a sprite or stage.

  1. Drawing one using the inbuilt Scratch Paint Editor, by clicking on the costume or background tab, and clicking the "paint" button
  2. Getting an image or multiple images that exist as files on the computer, either by clicking the "import" button under the costumes tab, or dragging in an image or images from an open folder. Dragging an animated GIF file from a folder into Scratch will split the gif into many costumes so the gif can be played using the Next costume block.

One used to be able to create a costume using a device's camera with the "Create a Costume from Webcam" feature. However, it was removed in May 2021[1].

Editing

DocumentInQuestion.png This page or section is in question as to whether it is useful or not. You can discuss whether you think it should be deleted or not on its talk page. (Date?)
Reason: A duplicate of the Paint Editor article
Main article: Paint Editor

There are two different costume types: bitmap, which uses pixels to create an image, and vector, which uses two points to create a line.

These tools are found in both the bitmap and the vector editor:

  • The brush tool is used to make general shapes, and it is the basic costume-making tool.
  • The line tool is for creating straight edges, which is hard to create with the brush.
  • The rectangle tool, or press and hold shift while drawing for a square, is often a quicker way to draw a rectangle or square then drawing it out with the line or brush.
  • The oval tool, or press and hold shift while drawing for a circle), often creates a better circle or oval then the brush tool.
  • To use the text tool, one clicks on the place they want to place the text, and a text box will pop up for them to type their text. When they are finished, they can click outside the text box to stamp it.
  • The fill with color tool fills the area with a simliar colour to the pixel selected, with the selected color.
  • The eraser is simliar the brush, but instead of stamping color, it erases color.
  • The select tool can be used to move the selected space in the bitmap editor, or the shape(s) in the vector editor, to a new position. In the vector editor, there are also addition tools, such as the "Send back one layer" tool, "Send forward one layer" tool, the "Group" tool and the "Ungroup" tool.

The reshape tool is exclusive to the vector editor. To use the reshape tool, one must first select an item, then dots will appear around the vertices as points. One can move, delete or create the points to create different shapes.

Deletion

Clicking the "X" button towards the upper-right of each costume's icon in the Costume Pane will delete it, provided that it is not the only costume of the sprite. It is possible to restore the most recently deleted costume, as long as nothing else has since been deleted, by selecting "Restore Costume" from the Edit Menu.

Blocks

There are four blocks that relate to costumes, which are as follows:

The first three blocks can be located in the Looks block section, while the fourth can be found in the Sensing block area.

Uses

  • The first block is used for the sprite to transfer its look between any of its costumes.
  • The second block is mainly used in animation. A block that does the opposite has been suggested, but it can simply be done with the following code:
switch costume to ((costume [number v]) - (1))

Costumes Tab

The costumes tab

To see the costumes of a sprite, click on the Costumes Tab. This will display a list of the costumes in the sprite, as well as open the paint editor.

See Also

References

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