m
m (Random Sprite Button: Changed it to past tense (Scratch 3.0 has a Surprise button already))
 
(36 intermediate revisions by 21 users not shown)
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.]]
+
{{April Fools}}
[[File:2.0 New Sprite Buttons.png|frame|The buttons for creating a new sprite.]]
+
[[File:3.0 Sprite and Stage.png|thumb|x190px|An image of a sprite appearing on both the stage and the sprite list.]]
'''Sprites''' are the [[Object-Oriented Programming|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.
+
'''Sprites''', either user-created, uploaded, or found in the [[Libraries#Sprites Library|sprites library]], are the [[Object-Oriented Programming|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. Some sprites only appeared in 1.4 and other 1.x versions, but can be used in 2.0 through making a project with the 1.4 offline editor, then logging into the Scratch website and editing the game from there. [[File:Cat5.png|frame|A sprite designed in the [[Paint Editor (1.4)|Scratch 1.4 paint editor.]]]]
  
==Scripting==
+
== Creating a Sprite ==
  
 +
[[File:3.0 New Sprite Buttons.png|frame|The buttons for creating a new sprite.]]
 +
 +
The bar above the sprite list has four buttons for creating sprites. They are:
 +
 +
* The [[Giga]] button allows you to choose a sprite from the [[Libraries#Sprites Library|library]].
 +
* The paintbrush button creates a blank sprite with an empty costume.
 +
* The folder button allows you to upload a sprite from your computer.
 +
* The camera button allows you to take a picture and uses that image as the costume.
 +
 +
When a sprite is created, it will place that sprite at a random location on the Stage, usually around the center, and open the sprite in the tab you're currently viewing.
 +
 +
== Scripting ==
 
Each sprite in a Scratch project has an area for [[script]]s, called the [[Scripts Area|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.
 
Each sprite in a Scratch project has an area for [[script]]s, called the [[Scripts Area|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 [[costume]]s. 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]].
+
The look of a sprite can also be changed by using [[costume]]s. 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 [[Looks]] blocks to select the sprite's costume. New costumes for the sprite can be imported, created, and edited in the Scratch [[Paint Editor]].
 +
 
 +
Some sprites additionally have at least one [[sound]]. Unlike costumes, sounds are an optional field, so you can have a sprite with no sounds. The sounds tab allows you to add, delete, and [[Sound Editor|edit]] sounds. Sounds can be played in the sound editor or with blocks that play a specific sound.
  
 
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.
 
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 Pack==
+
== 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 [[Ripping a Sprite Sheet|sprite sheet]].
+
A sprite pack is a type of project that contains sprites for usage of other users, 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. A sprite pack can also contain sprites from existing video games.
  
==Changing the Default Sprite==
+
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 [[Ripping a Sprite Sheet|sprite sheet]].
 +
 
 +
[[Creative Characters Camp]] encouraged users to create their own sprite packs.
 +
 
 +
== Changing the Default Sprite ==
 
{{main|How to Change the Default Sprite}}
 
{{main|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.
+
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.
  
==In Squeak==
+
== In Squeak ==
 
In [[Smalltalk|Squeak]], it is an instance of [[ScriptableScratchMorph#ScriptableSpriteMorph|ScriptableSpriteMorph]]. It is a child of [[ScriptableScratchMorph]], just like the [[stage]].
 
In [[Smalltalk|Squeak]], it is an instance of [[ScriptableScratchMorph#ScriptableSpriteMorph|ScriptableSpriteMorph]]. It is a child of [[ScriptableScratchMorph]], just like the [[stage]].
 +
 +
== Random Sprite Button ==
 +
{{main|Random Sprite Button}}
 +
The Random Sprite Button was a feature which existed within the Scratch Editor, which allowed [[Scratcher]]s to get a random sprite upon clicking the button. It was removed in [[Scratch 2.0]]. It  came back in 3.0 as [[Surprise]].
 +
 +
== See Also ==
 +
* [[Sprite Pane]]
 +
* [[How to Move Sprites with the Arrow Keys]]
  
 
[[Category:Scratch Program]]
 
[[Category:Scratch Program]]
[[de:Objekt]]
+
 
 +
[[de:Figur]]
 +
[[ru:Спрайт]]
 +
[[id:Sprite]]
 +
[[ja:スプライト]]

Latest revision as of 12:09, 11 June 2019

An image of a sprite appearing on both the stage and the sprite list.
Sprites, either user-created, uploaded, or found in the sprites library, are the 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. Some sprites only appeared in 1.4 and other 1.x versions, but can be used in 2.0 through making a project with the 1.4 offline editor, then logging into the Scratch website and editing the game from there.
A sprite designed in the Scratch 1.4 paint editor.

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 Giga button allows you to choose a sprite from the library.
  • The paintbrush button creates a blank sprite with an empty costume.
  • The folder button allows you to upload a sprite from your computer.
  • The camera button allows you to take a picture and uses that image as the costume.

When a sprite is created, it will place that sprite at a random location on the Stage, usually around the center, and open the sprite in the tab you're currently viewing.

Scripting

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 Looks blocks to select the sprite's costume. New costumes for the sprite can be imported, created, and edited in the Scratch Paint Editor.

Some sprites additionally have at least one sound. Unlike costumes, sounds are an optional field, so you can have a sprite with no sounds. The sounds tab allows you to add, delete, and edit sounds. Sounds can be played in the sound editor or with blocks that play a specific sound.

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 Pack

A sprite pack is a type of project that contains sprites for usage of other users, 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. A sprite pack can also contain sprites from existing video games.

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.

Creative Characters Camp encouraged users to create their own sprite packs.

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.

In Squeak

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

Random Sprite Button

Main article: Random Sprite Button

The Random Sprite Button was a feature which existed within the Scratch Editor, which allowed Scratchers to get a random sprite upon clicking the button. It was removed in Scratch 2.0. It came back in 3.0 as Surprise.

See Also