
This introduction to a Scratch racing game identifies five sprites—the car, road, passing cars, trees, and bridges—and shows that a sprite can have multiple costumes, like road and rail bridges.
Open Scratch, log in, create a new project named races, and import car, road, and barrier sprites with costumes. Set a green field backdrop and adjust visibility.
Define road logic with robot clones to create an infinite scrolling road. Position the robot center, clone periodically, and glide from top to bottom while removing old clones.
Position the main car in Scratch, resize to 30, and use a forever loop with left/right arrows to move it, using sensing blocks and if else to stay on track.
Learn to handle collisions in Scratch by using touching barrier sensors inside an if statement within a loop, then switch to an explosion costume and show a crash backdrop.
Add sounds to the car sprite in Scratch by uploading engine start, engine, and crash sounds, then orchestrate them with separate sound blocks, volume controls, and timing.
Add trees on both sides using clones and costumes with random delays for natural variation. Define clone behavior to switch costumes, position left or right, glide in, and delete.
This lecture teaches how to implement bridges as clones that randomly pick between two bridge costumes, place at the middle top, glide six seconds downward, and delete when not needed.
Learn to use one sprite with multiple costumes, set start and finish positions with variables, and manage clones with random timing to create dynamic race gameplay in Scratch.
In this course we will create game "Races" in the Scratch programming language. We will learn by doing!
Who is this course suitable for:
Teachers and parents who want to keep their children busy :)
Children and teenagers with at least intermediate level of Scratch proficiency
The course also contains theoretical explanations, but most of the course is practical. We will repeat or learn such areas as:
working with the coordinate system, why and when our coordinates are positive/negative;
working with variables: what it is and why they are needed;
creating sprite clones: how not to lose them during gameplay and why we need to delete them when we no longer needed.
I recommend that students simply repeat all the steps from the video, so at the end of the course they will have their own game, which they will be able to navigate and then be able to independently make some changes and expand the game at their own discretion. At the end of the course, materials with source codes for all sprites are provided - using them you can check whether the game is made correctly and fix any non-working parts.
Note: Those who under 18 years old may use this course only if a parent or guardian provides their account and controls all key activities while using the account.