gpvillage · web viewthe first step on creating your own car racing game is to open up scratch on...

8
How to Create Your Own Car Racing Game in Scratch This is a simple and easy step-by-step guide on how to create your own car racing game on Scratch. Steps 1The first step on creating your own car racing game is to open up Scratch on your desktop. Page 1

Upload: others

Post on 03-Oct-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: GPVillage · Web viewThe first step on creating your own car racing game is to open up Scratch on your desktop. 2When step 1 has been completed, and Scratch has loaded, you will need

How to Create Your Own Car Racing Game in Scratch

This is a simple and easy step-by-step guide on how to create your own car racing game on Scratch.Steps

1The first step on creating your own car racing game is to open up Scratch on your desktop.

2When step 1 has been completed, and Scratch has loaded, you will need to delete the small sprite that is on the right

side of the screen, this can be done by hovering over the cat in the grey area, a small drop down list will appear, you then press 'Delete'. The cat has been used as an example of a sprite.

Page 1

Page 2: GPVillage · Web viewThe first step on creating your own car racing game is to open up Scratch on your desktop. 2When step 1 has been completed, and Scratch has loaded, you will need

3You now need to create a new sprite, one that is relevant to the game you are wanting to create. You can create

the sprite by drawing it free hand, or uploading one. To create one you click on the 'Paint new sprite' button.

4When you have completed step 3 a blank page will appear, it will have all the tools in which you will need to create

your sprite. When finished creating this sprite you need to add a small dot in front of the car, this will later be explained.

Page 2

Page 3: GPVillage · Web viewThe first step on creating your own car racing game is to open up Scratch on your desktop. 2When step 1 has been completed, and Scratch has loaded, you will need

5When step 4 is completed and the new car sprite is created, you press 'OK'. When this has been done the new

sprite that you have created will be on the Scratch page. This will be the sprite used for your racing car racing game sprite.

Page 3

Page 4: GPVillage · Web viewThe first step on creating your own car racing game is to open up Scratch on your desktop. 2When step 1 has been completed, and Scratch has loaded, you will need

6Adding another car to make it two player you hover over the sprite and click duplicate, this will then copy the racing

car and make another one exactly like it. You may change the color of the second sprite, you can do this by editing it. The edit button is under the heading 'Costumes' this will only appear when you have clicked on the sprite(s) you would like to edit. You should also add a small colored dot in front of the duplicated racing car. The color dot should not be a colour that is already used in the game.

7When wanting to change the layout of the background, you click on the 'Stage' button, this will then allow you to

create your own racing game background.

8When you have created the background for your car racing game you can move the cars

around and place them wherever you like.

Page 4

Page 5: GPVillage · Web viewThe first step on creating your own car racing game is to open up Scratch on your desktop. 2When step 1 has been completed, and Scratch has loaded, you will need

9To get your cars to move, you have to set them so they can move individually and go in different directions, you do

this by making a script for them. This is done by clicking on one of the sprites. This is the script for the pink racing car.

10When creating the script for both racing cars, you should have added the 'Forever if' Variable, you should have

also added the 'Color _ is touching _ ?' This is so when the cars are driving around, they cannot go off the track, so for example if you have put a small pink dot in front of the racing car and the barriers are grey, you should put 'Color pink is touching grey?' you change this by clicking on the boxes provided in the variable and touch where ever the colors are.

Page 5

Page 6: GPVillage · Web viewThe first step on creating your own car racing game is to open up Scratch on your desktop. 2When step 1 has been completed, and Scratch has loaded, you will need

11The script for the duplicated car will be slightly different compared to the first racing car. The controls

will be slightly different due to it being a 2 player game. The keys that you press to move the car are letters on the key pad. These letters are your choice and whichever ones you would find relevant and easy to use. For example the key A and the key D. The letter D can be used to go clockwise (right) and the letter A can be used to go anti-clockwise (left).

12To test your racing game, click on the 'Switch to presentation mode'. This button is located at the top right of

the Scratch screen. To start the game you click on the green flag, this is also at the top right of the screen.

Page 6