7/30/2019 How to Make a Side Scrolling Game
1/6
The is whatwe are goingto make
1. First, make the background.
Go to the NewSprite and click the
paint brush. Then make two halves of
the screen light blue and green.
2. Next, make a Variable and call it
ScrollX
Follow the boxes below
Blocks, The coloured LEGOtype pieces you are joiningtogether.Scratch, The application youare using.Programming, The action youare doing. YOU ARE NOW APROGRAMMER :)Program, an action of addingthe blocks to make the gamework.Sprite, The characters on thethe screen.Control, To control the spritesby pressing the keys.
Sound, You will add music toyour game.Upload, To send to the web.Share, To send to the web forothers to play.Scroll, The action of pagemovement.Variable, A changing amount.Import, Bring other files to yourgame.Costume, The clothes of yourSprite.duplicate, To copy.Script, Your program is read inEnglish as a whole Script
Language you are using:
3. NAME THEVARIABLE IN THIS
BOX.
YOU HAVE NOW MADE A VARIABLE REMOVE THE TICK FROM THIS BOX
MAKING A SIDE SCROLLING
COMPUTER GAME
7/30/2019 How to Make a Side Scrolling Game
2/6
Take your time...
3. Make this block for your sprite.
Make sure that the first one called
0 so that we know what is what.
4. Once you have made this set of
blocks you need to duplicate thesprite so you have 2 of the same.
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....
IMPORTANT SCRIPTS!
Like this one here...
Drag and drop the same
shaped blocks into the
holes.
IF YOU ARE STUCK SEE THEVIDEO FOR THIS
Use the grow sprite tool and the
shrink sprite tool to make the greenparts match up.
COMING NEXT....
When you paint your backdrop you
must make it the smallest you can
too.
7/30/2019 How to Make a Side Scrolling Game
3/6
Now we can addsome rocks and atree
Dont spend ages editing a tree and
few rocks!
Look how simple this is.
5. Go to Costumes and edit.
Use the line tool and make a trunk.
Use the brush tool to make a tree top
and a few rocks.
O
Once you are done, click OK.
You are now ready to make a
walking sprite for your game.
Follow the steps below...
YOUR NEW BACKGROUND
SET X TO SCROLLX + 1 * 480
This is called one
Your new script is now changed to
one LOOK...
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
7/30/2019 How to Make a Side Scrolling Game
4/6
Making a Moving Character6. HOW TO
MAKE
BOD
Click:
Paint 3 coloured blocks.
Make a face, arms and legs
with 4 lines and a circle.
Copythe costume and
reverse
Write the script in
several pieces.
ADDINGBLOCKS
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 fromVariables 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.
7/30/2019 How to Make a Side Scrolling Game
5/6
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.
You need an if loop inside it. Drag it
in.
Next, Right Click next to the word
if and chose Duplicate
Next, drag the copied blocks
underneath the if block.
Drop it where you see the white line.
It will look like this:
Then change the up arrow words to
down arrow . This is for your
keyboard.
The numbers must be opposite too.
So. -3 becomes 3.
9. THATS LEFT AND RIGHT DONE
NOW LETS CONTROL UP AND
DOWN
Duplicate again like this:
You should end up with your control
area looking like this:
Change the Blue boxes so they say
LEFT, RIGHT, UP AND DOWN,
Like this:
Change the Blue boxes so they say
LEFT, RIGHT, UP AND DOWN,
The last phase - duplicating blocks
7/30/2019 How to Make a Side Scrolling Game
6/6
10. REMOVE THE SCROLLX
BLOCKS FROM THE NEW
SECTIONS LIKE THIS:
And add change y by in their
place.
Change the -10 and 10 for -1 and 1.
If you want them to move faster
change to -3 and 3.
Thats it.
You now have a side- scrolling game
ready for building on.
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
first name only.
This is your checklist.
This is your extension.
This is what were going to add next.
Changing Left and Right or X and Y
1. You have 2 backdrops2. A sprite called Bod3. A backdrop called 04. A backdrop called 15. Some rocks and a tree6. Control scripts7. up, down, left and right8. Change costume9. Music10. Extension: sensing