Scratch is a free programming resource for beginners.

You may first have to enable Adobe Flash by clicking the Allow prompt or logo.

On a Mac, you can hold down Control while clicking the sprite to prompt the drop-down menu.

On a Mac, you can hold down Control while clicking the sprite to prompt the drop-down menu.

Click the paint bucket icon that’s below the T icon. Select your track’s background color (e. g. , green for grass) at the bottom of the page. Click the background on the right side of the page.

Click the brush icon that’s at the top of the list of tools. Select a color for your track (e. g. , black) at the bottom of the page. Increase the brush width by dragging right the slider at the bottom of the page. Draw the track in a cyclical (not necessarily circular) shape.

This is also the point in front of which your car will start the race. You may want to use the straight line tool, which resembles a back slash () below the brush icon.

If you didn’t do it earlier, you may first have to close the “Tips” sidebar on the right side of the page by clicking the X icon in the sidebar’s left-hand corner.

If you didn’t do it earlier, you may first have to close the “Tips” sidebar on the right side of the page by clicking the X icon in the sidebar’s left-hand corner.

If you didn’t do it earlier, you may first have to close the “Tips” sidebar on the right side of the page by clicking the X icon in the sidebar’s left-hand corner.

If you’re making a car, you might want to use the rectangle tool (the rectangle-shaped icon) to draw the body and then add the car’s wheels with the circle tool. The + icon in the pane represents the center of your racer.

For example, if your current racer is a happy face, you might make the “crashed” costume a sad face.

The racer will stop once it touches the finish line, so make sure the racer is in front.

Place your mouse cursor over your racer. Review your racer’s x and y coordinates just above the upper-right side of the “Sprite” window. Drag the “go to x: 16 y: 120” event to fit under the “when flag clicked” event. Double-click the “16” text box, then type in the x value. Press the Tab ↹ key, then type in the y value. Press ↵ Enter.

Click Events. Drag the “when flag clicked” event onto the pane, separate of the first “when flag clicked” script. Click Control. Drag the “forever” event to fit below the “when flag clicked” script. Click Motion, then drag the “move 10 steps” option to fit in the “forever” slot. Change the “move 10 steps” variable from “10” to “2”, then press ↵ Enter.

Click Events, then drag the “when space key is pressed” event onto the pane twice. You should have two separate “when space key is pressed” events. Click the “space” text box on one “when space key is pressed” event, then click left arrow in the drop-down menu. Click the other “when space key is pressed” event’s “space” box, then click right arrow in the drop-down menu.

Click Motion. Drag the “turn [right arrow] 15 degrees” event to fit below the “right arrow” control. Drag the “turn [left arrow] 15 degrees” event to fit below the “left arrow” control.

Click Control, then drag the “if then” option onto a blank space. Click Sensing, then drag the “touching color” option into the “if then” option’s blank space (between the “if” and “then”). Click the current color next to “touching color”, then click once the background for your racer’s track. Click Looks, then drag “switch costume to” to fit in the “if then” gap. Drag the entire “if then” assembly to fit in the “forever” gap below the “move 2 steps” rule. Click Control, then drag the “stop all” option to fit below the “switch costume to” option. Click “all”, then click this script in the resulting drop-down menu.

Click Control, then drag the “if then” option onto a blank space. Click Sensing, then drag the “touching color” option into the “if then” option’s blank space (between the “if” and “then”). Click the current color next to “touching color”, then click once the finish line. Click Looks, then drag the “say hello for 2 secs” option to fit inside the “if then” gap. Change “hello” to say “You won!”, then change the “2” to whatever amount of time you want to use and press ↵ Enter. Drag the whole “if then” assembly into the “forever” bracket below the other “if” bracket.

If you determine that the track is too narrow or irregular to complete, you can adjust it by clicking the track’s icon in the lower-left side of the page, clicking the Backdrops tab, and drawing in the areas which need fixing with your track’s primary color.

If you determine that the track is too narrow or irregular to complete, you can adjust it by clicking the track’s icon in the lower-left side of the page, clicking the Backdrops tab, and drawing in the areas which need fixing with your track’s primary color.