You are on page 1of 6

MAKING A SIDE SCROLLING COMPUTER GAME

The is what we are going to make


1. First, make the background.

Go to the New Sprite and click the paint brush. Then make two halves of the screen light blue and green.

Language you are using:


Blocks, The coloured LEGO type pieces you are joining together. Scratch, The application you are using. Programming, The action you are doing. YOU ARE NOW A PROGRAMMER :) Program, an action of adding the blocks to make the game work. Sprite, The characters on the the screen. Control, To control the sprites by pressing the keys. Sound, You will add music to your game. Upload, To send to the web. Share, To send to the web for others to play. Scroll, The action of page movement. Variable, A changing amount. Import, Bring other files to your game. Costume, The clothes of your Sprite. duplicate, To copy. Script, Your program is read in English as a whole Script

2. Next, make a Variable and call it ScrollX

Follow the boxes below

3. NAME THE VARIABLE IN THIS BOX.

YOU HAVE NOW MADE A VARIABLE

REMOVE THE TICK FROM THIS BOX

Take your time...

IMPORTANT SCRIPTS!
Drag and drop the same shaped blocks into the holes.

3. Make this block for your sprite. Make sure that the rst one called 0 so that we know what is what.

4. Once you have made this set of blocks you need to duplicate the sprite so you have 2 of the same.

Like this one here...

Re-name this sprite 1 like this:

Now we have the same sprites you need to change a few things. A: Grab your sprite and move it so that the two green parts match. B: And now below....

IF YOU ARE STUCK SEE THE VIDEO FOR THIS

Use the grow sprite tool and the shrink sprite tool to make the green parts match up.

COMING NEXT.... When you paint your backdrop you must make it the smallest you can too.

Now we can add some rocks and a tree

YOUR NEW BACKGROUND


This is called one Your new script is now changed to one LOOK...

Dont spend ages editing a tree and few rocks!

Look how simple this is. 5. Go to Costumes and edit.


SET X TO SCROLLX + 1 * 480

Once you are done, click OK. Use the line tool and make a trunk. Use the brush tool to make a tree top and a few rocks. You are now ready to make a walking sprite for your game.

Follow the steps below...

DOUBLE CHECK: SPRITE ZERO AND SPRITE ONE

Does your Sprite 0 have: SET X to SCROLLX + 0 * 480

Does your Sprite 1 have: SET X to SCROLLX + 1 * 480

6. HOW TO

Making a Moving Character

MAKE BOD
Click: Paint 3 coloured blocks. Make a face, arms and legs with 4 lines and a circle. Copy the costume and reverse Write the script in several pieces. 7. BEGIN WITH THIS SCRIPT
You need a when Green Flag Clicked block. This starts the game. And you need a Set SCROLLX to 0 Block from Variables too. Next, you need a forever loop block from Control Inside this you are going to put your Control and the things that make Bod move.

ADDING BLOCKS

The last phase - duplicating blocks


Drop it where you see the white line. It will look like this: Change the Blue boxes so they say LEFT, RIGHT, UP AND DOWN,

Follow the blocks carefully

You need a friend to read the blocks and double check for you.

8. ADD THE FOREVER LOOP LIKE ABOVE. MAKE SURE ITS THERE.

Then change the up arrow words to down arrow . This is for your keyboard. The numbers must be opposite too. So. -3 becomes 3.

Like this: You need an if loop inside it. Drag it in. Next, Right Click next to the word if and chose Duplicate Change the Blue boxes so they say LEFT, RIGHT, UP AND DOWN,

9. THATS LEFT AND RIGHT DONE NOW LETS CONTROL UP AND DOWN
Duplicate again like this:

Next, drag the copied blocks underneath the if block.

You should end up with your control area looking like this:

Changing Left and Right or X and Y


Change the -10 and 10 for -1 and 1. If you want them to move faster change to -3 and 3. Thats it. This is your checklist.

1.
2.
3.
4.
5.
6.
8.
9.
10.

You have 2 backdrops A sprite called Bod A backdrop called 0 A backdrop called 1 Some rocks and a tree Control scripts

You now have a side- scrolling game ready for building on.

10. REMOVE THE SCROLLX BLOCKS FROM THE NEW SECTIONS LIKE THIS:

Make sure you have saved your game in your own folder called Side Scrolling Game and call the game side Scrolling by .. and Put your rst name only.

7.
up, down, left and right
Change costume Music Extension: sensing

This is your extension. This is what were going to add next.

And add change y by in their place.

You might also like