How to Make a Drawing Game in Scratch | Art Simulator Tutorial

Alphabets Sounds Video

share us on:

In this lesson, you will learn how to create a drawing game in Scratch by following four main steps: enabling drawing with the pen extension, allowing drawing only when the mouse button is pressed, creating buttons to change pen colors, and adding an eraser feature. Additionally, you’ll discover how to draw using different sprites and incorporate effects for a more engaging experience. By the end of the lesson, you’ll have a fun art simulator to enjoy and share.

How to Make a Drawing Game in Scratch

Hey everyone! Today, I’m going to show you how to create a fun drawing game, or art simulator, using Scratch. We’ll go through four main steps: making it possible to draw, letting the player lift the pen, creating buttons to change colors, and adding an eraser. Plus, I’ll show you how to draw with different characters. Let’s get started!

Step 1: Enable Drawing

First, we need to make it possible to draw on the stage. Click on the extensions button in Scratch and add the pen extension. This gives us new blocks to use. To start drawing, drag out the “pen down” block and click it. This makes it look like the Scratch cat has a pen that draws whenever it moves.

Try dragging out the “move 10 steps” block and clicking it. You’ll see the pen drawing as the cat moves. You can also use the “turn 15 degrees” block to change direction. To stop drawing, click the “pen up” block. Click “pen down” again to start drawing.

To make a drawing game, drag out the “go to mouse pointer” block and put it inside a forever loop. This makes the sprite follow your mouse pointer while the pen is down, drawing wherever it goes. Set this to start when the green flag is clicked, and make sure the pen is down at the start. If you want to remove the Scratch cat, go to the costumes tab, choose a costume, and click paint to create a blank costume.

You can change the pen size with the “set pen size” block and choose a color like light purple. To start with a clean canvas every time, use the “erase all” block when the green flag is clicked.

Step 2: Draw Only When Pressing Down

Next, let’s make it so you only draw when pressing the mouse button. Use the “if then else” block to check if the mouse is down. If it is, put the “pen down” block there; otherwise, use the “pen up” block. This should be inside the forever loop so the sprite always checks if the mouse is down. Now, you can click and drag to draw freely.

Step 3: Create Color Change Buttons

Now, let’s create a button to change the pen color. Make a new sprite, draw a light blue circle, and place it in the bottom corner. When this sprite is clicked, it will set the pen color to blue. Since each sprite has its own pen color, we need to broadcast a message to change the drawing sprite’s pen color.

When the button is clicked, broadcast a message called “light blue.” For the drawing sprite, set it to change its pen color to blue when it receives that message. Now, you can draw in purple and click the button to change the color to blue. You can make more buttons for different colors.

Step 4: Add an Eraser

Let’s add an eraser! Create another button that sets the pen color to match the background (white, in this case). When this button is clicked, it will broadcast the message “eraser,” and the drawing sprite will set its pen color to white, allowing you to erase drawings.

Step 5: Draw with a Sprite

Finally, let’s draw with a sprite. Go back to the Scratch Cat costume and use the “stamp” block inside the forever loop to draw with the Scratch Cat. You can also add a “change color effect” block to create a rainbow effect. If you want to draw with another sprite, choose a different costume.

That’s it! I hope you have fun making your drawing game. See you next time, and happy scratching!

  1. What was the most surprising or interesting aspect of creating a drawing game in Scratch that you learned from the article?
  2. How do you think the process of enabling drawing in Scratch can be applied to other types of projects or games?
  3. Reflect on the steps involved in making the drawing game. Which step did you find most challenging, and why?
  4. How might the ability to change pen colors and add an eraser enhance the user experience in a drawing game?
  5. What are some creative ways you could expand on the basic drawing game described in the article?
  6. How does the use of broadcasting messages in Scratch help in managing different functionalities, such as changing colors?
  7. In what ways can drawing with different sprites add to the creativity and appeal of the game?
  8. What did you learn about the importance of user interaction, such as drawing only when pressing down, in game design?
  1. Activity 1: Create Your Own Drawing Game

    Start by opening Scratch and follow the steps from the article to create your own drawing game. Use the pen extension to enable drawing and experiment with different pen sizes and colors. Try to make your sprite follow the mouse pointer and draw on the stage. Share your game with your classmates and see who can create the most creative drawing tool!

  2. Activity 2: Design a Color Palette

    Create a set of color change buttons for your drawing game. Design different sprites for each color you want to include in your palette. When you click on a color button, it should change the pen color of your drawing sprite. Challenge yourself to add at least five different colors and test them out by drawing colorful patterns.

  3. Activity 3: Implement an Eraser Tool

    Add an eraser button to your game by creating a sprite that changes the pen color to match the background. Use the broadcast message feature to communicate between sprites. Test your eraser by drawing something and then erasing parts of it. See if you can create a drawing that combines both drawing and erasing techniques!

  4. Activity 4: Experiment with Different Characters

    Try using different sprites instead of the Scratch Cat for drawing. Choose a new costume and use the “stamp” block to create unique patterns. Experiment with the “change color effect” block to add special effects to your drawings. Share your creations with the class and discuss how different characters can change the style of your artwork.

  5. Activity 5: Host a Drawing Challenge

    Organize a drawing challenge with your classmates using the games you’ve created. Set a theme or a specific drawing task, and use your Scratch drawing games to complete it. Vote on the most creative or interesting drawing and discuss what techniques were used. This is a great way to practice your Scratch skills and have fun with your friends!

Sure! Here’s a sanitized version of the YouTube transcript:

Hey everyone, it’s Zia here. Today I wanted to show you how to create a drawing game or art simulator in Scratch. I’ll break this down into four steps: making it possible to draw, allowing the player to lift the pen if they want, creating buttons to change the ink color, and adding an eraser. Lastly, I’ll show you how to draw with different characters. So let’s get started with step one.

To enable drawing on the stage, click on the extensions button and add the pen extension. This adds more blocks to Scratch that allow for additional functionality. The pen blocks work by dragging out the “pen down” block and clicking it. This simulates a pen underneath the Scratch cat that will draw on the stage whenever the cat moves.

If I drag out the “move 10 steps” block and click it, the pen will draw wherever the Scratch cat goes. I can also use the “turn 15 degrees” block, and the pen will continue drawing. To stop drawing, I can click on the “pen up” block, which lifts the pen off the stage. Clicking “pen down” again will resume drawing.

To create a drawing game, I can drag out the “go to mouse pointer” block and place it inside a forever loop. This will make the sprite follow the mouse pointer while the pen is down, allowing it to draw wherever the Scratch cat goes. I’ll set this to start when the green flag is clicked and ensure the pen is down at the start. If you want to remove the Scratch cat, you can go to the costumes tab, choose a costume, and click paint to create a blank costume.

To change the size of the pen, drag out the “set pen size” block and adjust it to your preference. You can also set the pen color to something like light purple. To have a fresh canvas every time the project starts, use the “erase all” block when the green flag is clicked.

Now, let’s move on to step two, where we’ll make it so that it only draws when the player is pressing down. We can use the “if then else” block to check if the mouse is down. If it is, we’ll put the “pen down” block there; otherwise, we’ll use the “pen up” block. This needs to be inside the forever loop so that the sprite is always checking if the mouse is down. Now, when I click and drag, I can draw freely.

In step three, I’ll show you how to create a button to change the color. I’ll create a new sprite, draw a light blue circle, and position it in the bottom corner. When this sprite is clicked, it will set the pen color to blue. However, since each sprite has its own pen color, we need to broadcast a message to change the drawing sprite’s pen color.

When the button is clicked, it will broadcast a message called “light blue.” For the drawing sprite, I’ll set it to change its pen color to blue when it receives that message. Now, when I start the game, I can draw in purple, and clicking the button changes the color to blue. You can create more buttons like this for different colors.

Now, let’s quickly cover step four: adding an eraser. To do this, create another button that sets the color to match the background (white, in this case). When this button is clicked, it will broadcast the message “eraser,” and the drawing sprite will set its pen color to white, allowing you to erase drawings.

Finally, in step five, I’ll show you how to draw with a sprite. I’ll go back to the Scratch Cat costume, and by using the “stamp” block inside the forever loop, I can draw with the Scratch Cat. You can also add a “change color effect” block to create a rainbow effect. If you want to draw with another sprite, you can choose a different costume.

That’s what I wanted to share with you today! I hope you have fun making drawing games. See you next time, and happy scratching!

This version maintains the instructional content while removing any informal language or unnecessary details.

ScratchA computer program that lets you create your own games and animations by snapping together code blocks. – Example sentence: In Scratch, I made a fun game where a cat chases a mouse around the screen.

DrawingThe act of creating pictures or designs on a computer screen using special tools. – Example sentence: I used the drawing tool in the program to design a colorful background for my game.

PenA tool in computer programs that lets you draw lines and shapes on the screen. – Example sentence: I used the pen tool to draw a path for my character to follow in the animation.

ColorA property of an object that describes how it looks, like red, blue, or green. – Example sentence: I changed the color of my sprite to make it stand out more in the game.

SpriteA character or object in a computer game or animation that can move and interact with other elements. – Example sentence: I programmed the sprite to jump over obstacles in the game.

MouseA device used to move a pointer on the computer screen and click on things. – Example sentence: I used the mouse to drag and drop blocks of code in Scratch.

ButtonA clickable area on the screen that performs an action when pressed. – Example sentence: I added a start button to my game so players can begin playing.

EraseTo remove something from the screen, like a drawing or a mistake. – Example sentence: I had to erase the extra lines I drew by mistake in my picture.

GameAn interactive program that people can play for fun, often involving challenges or goals. – Example sentence: I created a simple game where players have to catch falling stars with a basket.

CanvasThe area on the computer screen where you can draw or create your projects. – Example sentence: I filled the canvas with a bright blue sky for my animation background.

All Video Lessons

Login your account

Please login your account to get started.

Don't have an account?

Register your account

Please sign up your account to get started.

Already have an account?