(Updated image and added more info.)
m (Added an image.)
|Line 1:||Line 1:|
[[File:2.0 Sprite and Stage.png|frame|An image of a sprite appearing on both the stage and the sprite list.]]'''Sprites''' are the [[OOP|objects]] that perform actions in a [[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:2.0 Sprite and Stage.png|frame|An image of a sprite appearing on both the stage and the sprite list.]]
'''Sprites''' are the [[OOP|objects]] that perform actions in a [[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.
Revision as of 22:21, 11 September 2013
Each sprite in a Scratch project has an area for scripts, called the scripts area. Users can give instructions to a sprite (such as telling the sprite to move) by snapping blocks together in the scripts 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 pane will bring up the script area of that sprite.
The look of a sprite can also be changed by using costumes. The current costume of a sprite can be changed by clicking on the "costumes" 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, created, and edited in the Scratch Paint 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.
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, creating a new project will provide a sprite with an image of the Scratch Cat without any scripts. This could 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.