Sparkathon v1.0

Step-by-Step Scratch Practice Guide

Step 0

Open the Scratch Website

You must click this button to open your workspace before reading the steps below:

Click to Start Scratch
Choose Your Category Below

Lower Primary

Level 1

Goal: Draw the 5 Olympic Circles

1

Get the Pen tool: Look at the very bottom-left corner of the screen. Click the blue button with the "+" and boxes. Click on the picture that says "Pen".

2

Start the drawing: Go to the yellow circle on the left. Drag out When (Green Flag) clicked. Go to the new dark green circle. Drag erase all and put it under the flag. Drag pen down and put it under "erase all".

3

Draw a circle: Go to the orange circle. Drag out repeat (10). Click the number 10 and type 36. Go to the blue circle. Drag move (10) steps inside the repeat block. Drag turn right (15) degrees inside too, but change the 15 to 10. Click the green flag to test it!

4

Draw the next one: After the repeat block finishes, drag pen up so it stops drawing. Drag move (50) steps to move over. Drag change pen color by (10). Drag pen down again. Now copy Step 3 to draw another circle!

Upper Primary

Level 2

Goal: Create an Apple Catcher Game

1

Get your Characters: Delete the Cat sprite by clicking the trash can on it. Look at the bottom right. Click the "Choose a Sprite" button (cat face). Search for Apple and click it. Do it again and search for Bowl.

2

Make the Bowl follow your mouse: Click on the Bowl sprite below the stage. Drag When (Green Flag) clicked. Drag forever and attach it. Go to the blue circle, drag set x to ( ) inside forever. Go to the light blue circle, drag mouse x into the empty hole in the set x block.

3

Make the Apple fall: Click on the Apple sprite. Drag When (Green Flag) clicked. Drag forever. Inside the forever block, put change y by (-5). This makes it fall! (Don't forget the minus sign).

4

Catching the Apple: Still on the Apple, put an if < > then block inside the forever loop. Put touching (Bowl)? in the diamond shape. If it touches the bowl, make it jump back to the top by dragging go to random position and set y to (180) inside the "if" block.

Junior Secondary

Level 3

Goal: Build a Ping Pong Game

1

Make the Ball bounce around: Add a Ball sprite and a Paddle sprite from the library. Click the Ball. Drag When (Green Flag) clicked. Under it, put point in direction (45). Attach a forever block. Inside forever, put move (15) steps and if on edge, bounce.

2

Control the Paddle: Click the Paddle sprite. Drag When (Green Flag) clicked. Attach a forever block. Inside forever, put set x to ( ). Go to Sensing and drop mouse x into the hole. The paddle will now follow your mouse left and right.

3

Hit the Ball: Click the Ball sprite again. Inside its forever loop, add an if < > then block. Put touching (Paddle)? into the diamond. Inside the "if", put turn right (180) degrees and move (15) steps to bounce it away.

4

Game Over Line: Add a Line sprite from the library and place it at the very bottom of the screen. Click the Line sprite. When (Green Flag) clicked -> forever -> if < > then. Put touching (Ball)? in the "if". Inside, put stop (all) to end the game!

Senior Secondary

Level 4

Goal: Platformer Physics (Gravity & Jumping)

1

Create Gravity: Go to the dark orange circle, click "Make a Variable" and name it SpeedY. Click your character sprite. When (Green Flag) clicked -> forever. Inside forever, put change y by (SpeedY) and change [SpeedY] by (-1). Your character will fall faster and faster!

2

Hit the Floor: Draw a green floor at the bottom of the screen. Inside your forever loop, add if < > then. Put touching color [green]? in the diamond (click the color box, then click the eyedropper to select your floor color). Inside the "if", set [SpeedY] to (0).

3

Don't Sink into the Floor: Under `set SpeedY to 0`, add a repeat until < > block. Go to Operators (green) and get a `not < >` block. Put it in the diamond. Put touching color [green]? inside the "not". Inside the repeat loop, put change y by (1). This pushes the player back up to the surface!

4

Jumping: Inside the same `if touching color [green]` block (at the bottom of it), add another if < > then. Put key (space) pressed? in the diamond. Inside, put set [SpeedY] to (15). Now you can only jump when standing on the ground!