How to Create Your Own Car Racing Game in Scratch
The first step on creating your own car racing game is to open up Scratch on your desktop., When 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...
Step-by-Step Guide
-
Step 1: The first step on creating your own car racing game is to open up Scratch on your desktop.
The cat has been used as an example of a sprite. , You can create the sprite by drawing it free hand, or uploading one.
To create one you click on the 'Paint new sprite' button. , When finished creating this sprite you need to add a small dot in front of the car, this will later be explained. , 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. , You may change the colour 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 coloured dot in front of the duplicated racing car.
The colour dot should not be a colour that is already used in the game. ,,, This is done by clicking on one of the sprites.
This is the script for the pink racing car. , This is so when the cars are driving around, they can not 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 'Colour pink is touching grey?' you change this by clicking on the boxes provided in the variable and touch where ever the colours are. , 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 keypad.
These letters are your choice and which ever 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). , 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. -
Step 2: When step 1 has been completed
-
Step 3: and Scratch has loaded
-
Step 4: you will need to delete the small sprite that is on the right side of the screen
-
Step 5: this can be done by hovering over the cat in the grey area
-
Step 6: a small drop down list will appear
-
Step 7: you then press 'Delete'.
-
Step 8: You now need to create a new sprite
-
Step 9: one that is relevant to the game you are wanting to create.
-
Step 10: When you have completed step 3 a blank page will appear
-
Step 11: it will have all the tools in which you will need to create your sprite.
-
Step 12: When step 4 is completed and the new car sprite is created
-
Step 13: you press 'OK'.
-
Step 14: Adding another car to make it two player you hover over the sprite and click duplicate
-
Step 15: this will then copy the racing car and make another one exactly like it.
-
Step 16: When wanting to change the layout of the background
-
Step 17: you click on the 'Stage' button
-
Step 18: this will then allow you to create your own racing game background.
-
Step 19: When you have created the background for your car racing game you can move the cars around and place them wherever you like.
-
Step 20: To get your cars to move
-
Step 21: you have to set them so they can move individually and go in different directions
-
Step 22: you do this by making a script for them.
-
Step 23: When creating the script for both racing cars
-
Step 24: you should have added the 'Forever if' Variable
-
Step 25: you should have also added the 'Colour _ is touching _Â ?'
-
Step 26: The script for the duplicated car will be slightly different compared to the first racing car.
-
Step 27: To test your racing game
-
Step 28: click on the 'Switch to presentation mode'.
Detailed Guide
The cat has been used as an example of a sprite. , You can create the sprite by drawing it free hand, or uploading one.
To create one you click on the 'Paint new sprite' button. , When finished creating this sprite you need to add a small dot in front of the car, this will later be explained. , 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. , You may change the colour 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 coloured dot in front of the duplicated racing car.
The colour dot should not be a colour that is already used in the game. ,,, This is done by clicking on one of the sprites.
This is the script for the pink racing car. , This is so when the cars are driving around, they can not 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 'Colour pink is touching grey?' you change this by clicking on the boxes provided in the variable and touch where ever the colours are. , 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 keypad.
These letters are your choice and which ever 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). , 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.
About the Author
Kyle Stone
Dedicated to helping readers learn new skills in practical skills and beyond.
Rate This Guide
How helpful was this guide? Click to rate: