In mBlock, sprites are the characters or objects that perform actions in your projects. Costumes are the different appearances or visual states that a sprite can have. Here’s a brief overview of how to work with sprites and costumes:
1. Sprites
- Description: Sprites are the fundamental elements in mBlock projects. They can represent characters, objects, or any item you want to interact with in your project.
- Purpose: Sprites perform actions and interact with each other based on the scripts you create.
2. Adding and Managing Sprites
- Adding Sprites: Click on the “Choose a Sprite” button to add new sprites from the library, upload your own images, or draw new sprites using the built-in editor.
- Managing Sprites: Select a sprite to view and edit its scripts, costumes, and sounds. You can rename, duplicate, or delete sprites as needed.

3. Costumes
- Description: Costumes are different visual states or appearances for a sprite. Each sprite can have multiple costumes, allowing it to change its appearance.
- Purpose: Costumes are used to animate sprites, create visual effects, or represent different states of a sprite.
4. Adding and Editing Costumes
- Adding Costumes: Click on the “Costumes” tab and use the “Choose a Costume” button to add costumes from the library, upload images, or draw new costumes.
- Editing Costumes: Use the built-in costume editor to modify existing costumes or create new ones. You can change colors, add shapes, and use various drawing tools.

5. Switching Costumes
- Using Blocks: In the scripting area, use the “switch costume to” block to change a sprite’s costume during the project. This is useful for creating animations or indicating changes in state.

By understanding how to work with sprites and costumes, you can create dynamic and visually appealing projects in mBlock. These elements are essential for bringing your stories, games, and animations to life.