Drawing Games in Scratch: What to Make and How
In this article
Drawing games in Scratch are projects where the player paints, doodles or fills in shapes on the stage using the mouse or keyboard, and they all rely on the same handful of blocks: the pen extension, mouse position reporters, and a forever loop that draws while the mouse button is held down. The list below covers the most useful kinds to build, from a plain free-draw canvas to guessing games where one player draws and another types answers. Each entry says what the project does, which blocks carry the work, and roughly how long a build takes.
| Project | Main blocks | Best for | Build time |
|---|---|---|---|
| Free-draw canvas | Pen, mouse x/y, mouse down? | First pen project | 15-30 min |
| Colour and brush picker | Pen, variables, list | Learning variables | 30-45 min |
| Symmetry painter | Pen, multiplication, stamp | Maths tie-in | 30-45 min |
| Colour by numbers | Costumes, sensing, pen | Younger players | 45-60 min |
| Connect the dots | Pen, lists, distance | Puzzle fans | 45-60 min |
| Draw and guess | Ask and answer, pen, variables | Two players | 60-90 min |
| Pixel art grid | Clones, stamp, lists | Retro look | 60-90 min |
| Eraser and undo | Pen, lists, forever loop | Polishing any canvas | 30-45 min |
How Do You Set Up a Basic Drawing Canvas?
Every project below starts the same way. Add the Pen extension from the bottom-left button in the editor, then build a script that puts the pen down and moves it to the mouse pointer on every frame.
The core script is short: a green flag block, then erase all, then pen up, then a forever loop containing go to mouse-pointer, and inside that an if block checking mouse down?. When the mouse is down, put the pen down and move one step; when it is up, lift the pen. Without the lift, the pen drags a straight line across the stage every time the player moves to a new spot.
Set the pen size to 3 for a normal pencil line and the colour to black as a starting point. A stage is 480 by 360 pixels, so a size-3 line is thin enough to write with and thick enough to see. If the line looks broken when the mouse moves fast, replace the single move step with go to mouse-pointer inside the if block so the pen jumps straight to the pointer each frame.
Labels in the Scratch editor can differ slightly by version, so look for the Pen category and the Sensing category if a block is not where you expect.
Which Drawing Games Work Best for Beginners?
1. Free-draw canvas
A blank stage, one sprite hidden behind the pen, and the script above. Add a when space key pressed hat that runs erase all so the player can start over. Best for a first project: 15 to 30 minutes and no variables at all.
2. Colour and brush picker
Place four or five small coloured sprites along the bottom edge of the stage. Each one gets when this sprite clicked, then set pen colour to its own colour. Add two arrow sprites that change a pen size variable by 1 up or down, with the pen size clamped between 1 and 20 so the line never disappears or floods the stage. Best for learning variables: 30 to 45 minutes.
3. Symmetry painter
Draw the same stroke in two or four places at once. Keep the mouse position in two variables, then use go to x: (0 - mouse x) y: (mouse y) for a mirror line down the centre, or swap x and y for a diagonal mirror. Put the pen down once and move to both points inside the same loop. Best for a maths lesson on coordinates: 30 to 45 minutes.
4. Eraser and undo
An eraser is just the pen set to the background colour with a larger size, typically 15 to 25. Undo is harder: record each stroke's points in a list, and on the undo key delete the last group of points and redraw everything that remains after an erase all. Best for polishing a canvas once the basics work: 30 to 45 minutes.
How Do You Build Drawing Games With Rules?
5. Colour by numbers
Draw an outline picture as a costume on a sprite, then cover it with numbered regions. The player clicks a colour, then clicks a region; a when this sprite clicked script switches that region's costume to the filled version. Check the answer by comparing a variable holding the chosen colour with the region's correct colour. Best for younger players: 45 to 60 minutes.
6. Connect the dots
Store the dot positions in two lists, one for x and one for y. When the player clicks near a dot, check the distance to the next dot in the list with the distance-to block; if it is under about 30 pixels, draw a line to it and move to the next dot. Wrong dots cost a life. Best for puzzle fans: 45 to 60 minutes.
7. Draw and guess
One player draws on the canvas while a second player types guesses into an ask and wait block. Keep the answer in a variable, compare the typed answer with it, and show a win message when they match. Add a timer counting down from 60 seconds so rounds stay short. Best for two players on one keyboard: 60 to 90 minutes.
8. Pixel art grid
Make a small square sprite, then use a create clone of myself loop to fill a grid, typically 16 by 16 squares of 20 pixels each. Each clone sits at its grid position and switches costume when clicked, so the player paints square by square. Best for a retro look: 60 to 90 minutes.
What Goes Wrong With Scratch Drawing Games?
The most common problem is a line joining two separate strokes. That happens when the pen stays down between clicks; put pen up at the top of the loop and only put it down inside the mouse-down check.
The second is a canvas that lags on slow computers. Every pen step is a drawing operation, so a forever loop that draws dozens of points per frame will stutter. Reduce the pen size changes and avoid stamping large sprites every frame.
The third is colour that will not change. Pen colour is set with a colour block, not with the sprite's costume colour, so a coloured sprite does not change the pen until a set pen colour to block runs.
The fourth is a canvas that clears itself. Any erase all block outside a hat script runs every time the green flag is clicked, which is expected, but a stray erase all inside a forever loop wipes the drawing every frame. Check that it sits before the loop, not inside it.
How Do You Share a Drawing Game on Scratch?
Save the project, then use the Share button so it appears on your profile. Write instructions in the project notes: which keys clear the canvas, which sprites change colour, and how many players the game needs. Test on a different computer first, because pen size and mouse speed feel different on a trackpad than on a mouse.
If you want other people to remix it, keep the sprite names plain, such as Pen, Red, Blue and Eraser, so the scripts are easy to follow. A drawing game with clear names and a short instruction list gets played far more than one where the player has to guess what each button does.