How to Create a Racing Game in Scratch
Open Scratch., Get rid of the cat., Start creating your game! , Create a new 'Sprite'., To make a new sprite, click on the button that the arrow is pointing to in this picture: When you left click on that it will open up a designing window., When...
Step-by-Step Guide
-
Step 1: Open Scratch.
When you open Scratch it should look like this. -
Step 2: Get rid of the cat.
When it has opened, you will notice that it has a cat in the middle of the white part of the screen.
We do not want that there, so what we do is look below the white part, and it should have another picture of the cat with the writing "Sprite1" underneath it.
Right-click on this, and then click delete.
This will clear your screen of all sprites.
Now it should be a blank Scratch document. ,, Sprites are like characters, they are the thing that you will be controlling in your game.
However, you can also use sprites for different things, e.g. displaying how many lives you have etc. , You should be familiar with these tools that they offer to design your sprite.
You can make it look like what ever you want BUT it has to be a race car. ,,,, From here, you will see 3 tabs at the top of the middle section called; 'Scripts'
'Backgrounds' and 'Sounds'.
Left click on 'Backgrounds'.
Then click 'Edit' on the plain background that is already there. ,,,,, For example, I am going to add laps. , If you are unsure how to do this, look back at steps 7, 8, 9 and
10. , (WARNING:
Make sure that it is a different colour to a colour that you are not using for other sprites) ,,, Then you have to enter them into a code, the code should look like this: ,, Make sure that it is the same as this: ,, Things like; Timers, collectibles, shortcuts, and many more things! -
Step 3: Start creating your game!
-
Step 4: Create a new 'Sprite'.
-
Step 5: To make a new sprite
-
Step 6: click on the button that the arrow is pointing to in this picture: When you left click on that it will open up a designing window.
-
Step 7: When you have created your sprite
-
Step 8: click 'OK' and this will import your created sprite into the game.
-
Step 9: After you have created the sprite
-
Step 10: create the background or the "Stage".
-
Step 11: To do this
-
Step 12: click on the stage option
-
Step 13: that is marked by the arrow in this picture.
-
Step 14: When you left click on here
-
Step 15: it will open the stage section.
-
Step 16: Clicking on 'Edit' and it will open up the designing window again
-
Step 17: from here
-
Step 18: create a racetrack.
-
Step 19: This is my completed sprite version:
-
Step 20: Now that you have created the racetrack and the race car all you need to do now is be able to move it around.
-
Step 21: To move the race car around
-
Step 22: enter this in the middle section:
-
Step 23: When you have finished all of the sprites and the stage you want you can now make your game more realistic.
-
Step 24: To do this
-
Step 25: you must add a new sprite.
-
Step 26: This sprite we are going to create now is the start/finish line.
-
Step 27: Mine looks like this:
-
Step 28: Another thing that you will have too add now is where to make your cars appear when the green flag is clicked.
-
Step 29: To find the place where you have to make them appear
-
Step 30: you have to put your mouse over a position where your sprites (Car) isn't touching the the finish line.
-
Step 31: Where it says 'Point in direction -90' that is telling me which way my car will point when I click the green flag
-
Step 32: because mine is -90
-
Step 33: it means it will appear facing left.
-
Step 34: All you have to do now is enter the coding!
-
Step 35: Now that you have entered the way to move around the track
-
Step 36: you can now play it!
-
Step 37: You can add some extra things if you wish to make your game look and feel a bit more realistic or challenging!
Detailed Guide
When you open Scratch it should look like this.
When it has opened, you will notice that it has a cat in the middle of the white part of the screen.
We do not want that there, so what we do is look below the white part, and it should have another picture of the cat with the writing "Sprite1" underneath it.
Right-click on this, and then click delete.
This will clear your screen of all sprites.
Now it should be a blank Scratch document. ,, Sprites are like characters, they are the thing that you will be controlling in your game.
However, you can also use sprites for different things, e.g. displaying how many lives you have etc. , You should be familiar with these tools that they offer to design your sprite.
You can make it look like what ever you want BUT it has to be a race car. ,,,, From here, you will see 3 tabs at the top of the middle section called; 'Scripts'
'Backgrounds' and 'Sounds'.
Left click on 'Backgrounds'.
Then click 'Edit' on the plain background that is already there. ,,,,, For example, I am going to add laps. , If you are unsure how to do this, look back at steps 7, 8, 9 and
10. , (WARNING:
Make sure that it is a different colour to a colour that you are not using for other sprites) ,,, Then you have to enter them into a code, the code should look like this: ,, Make sure that it is the same as this: ,, Things like; Timers, collectibles, shortcuts, and many more things!
About the Author
Tyler Rodriguez
Experienced content creator specializing in organization guides and tutorials.
Rate This Guide
How helpful was this guide? Click to rate: