(Not really relevant)
(This doesn't seem to be true - the Community Stats on the front page (nor the stats website) have any info about sprites per project)
Line 1: Line 1:
 
[[File:Sprite_and_Screen.png|frame|An image of Sprite1 (in the form of the [[Scratch Cat]]) on a small [[stage]]. A thumbnail of the selected sprite appears below the stage.]]'''Sprites''' are the [[OOP|objects]] that perform actions in a [[Scratch]] [[project]]. While the [[Stage]] can also be programmed in a [[project]], most projects have at least one sprite as well because only sprites can move.
 
[[File:Sprite_and_Screen.png|frame|An image of Sprite1 (in the form of the [[Scratch Cat]]) on a small [[stage]]. A thumbnail of the selected sprite appears below the stage.]]'''Sprites''' are the [[OOP|objects]] that perform actions in a [[Scratch]] [[project]]. While the [[Stage]] can also be programmed in a [[project]], most projects have at least one sprite as well because only sprites can move.
 
According to the [[Scratch Statistics|Community Statistics]] on the [[Front Page|front page]], there is an average of about six sprites per project.
 
  
 
==Scripting==
 
==Scripting==

Revision as of 21:04, 18 August 2012

An image of Sprite1 (in the form of the Scratch Cat) on a small stage. A thumbnail of the selected sprite appears below the stage.
Sprites are the objects that perform actions in a Scratch project. While the Stage can also be programmed in a project, most projects have at least one sprite as well because only sprites can move.

Scripting

Each sprite in a Scratch project has a scripting area, called the Scripts Area. Users can give instructions to a sprite (such as telling the sprite to move) by snapping blocks together in the scripting area. Clicking on the block(s) in the script area will cause the sprite to react based on the function of the block(s) clicked. Clicking on a sprite's thumbnail in the sprite list will bring up the script area of that sprite.

The look of a sprite can also be manipulated by changing its costume. The current costume of a sprite can be changed by clicking on the costume tab and clicking on the desired costume of choice, or by using blocks to select the sprite's costume. New costumes for the sprite can be imported or designed in the Scratch Paint Editor. Additionally, a sprite's costume can also be edited in the Scratch Paint Editor.

Sprites (both code and costumes) can be exported to be imported later into another project if desired. This is achieved by right-clicking on a sprite's thumbnail in the sprite list and then clicking "export" in the pop-up menu.

Sprite Pack

A sprite pack is a type of project, usually consisting of 10-30 sprites. However, there is no set limit of sprites for sprite packs. A sprite pack usually has a theme, but does not require one. Example themes include cars, dogs, dinosaurs, etc. Ideally, a user should give credit if they use a sprite from someone else's sprite pack, animation, game, or any other project. A sprite pack may also be called a sprite collection, but they are the same type of thing. Sprite Packs can also be found on other websites, but they must be ripped from a sprite sheet.

Changing the Default Sprite

Main article: How to Change the Default Sprite

By default, designing a new Scratch project will provide a scriptless (containing no blocks) sprite in the image of the Scratch Cat, although this can be changed by making the sprite you would like to replace the Scratch Cat, then exporting it under the name default.sprite. This can be found on the Scratch Network Installation page, but it works for regular Scratch as well.

In Squeak

In Squeak, it is an instance of ScriptableSpriteMorph. It is a child of ScriptableScratchMorph, just like the stage.