🦋 Sprite
3rd Grade 💻 Coding
A sprite is anything that moves or acts on the stage in a game or in Scratch, like a player, a ball, an enemy or a button. It has its own code and pictures.
In Scratch, every sprite has scripts (its code), costumes (different pictures of it) and sounds. When you switch costumes quickly, like right foot forward and then left foot forward, you get a walking animation. Every sprite also has a position (x and y), a direction and a size.
The word “sprite” comes from early video games, where small characters were drawn pixel by pixel and moved on top of the background. Even today, almost every 2D game is built from sprites. You can pick a ready-made sprite, draw your own, or take a photo of a drawing you made on paper.
For example
- A “catch the apple” game has two sprites: a basket that moves with the arrow keys and an apple that falls from the top.
- Ethan drew three costumes of a bird with its wings in different positions, and the bird “flew.”
📌 Remember: A sprite = a performer on the stage, with code, costumes and sounds.
Quick quiz
What is a sprite?
How do you make a walking animation?
What does every sprite have in Scratch?