
Develop a scratch train station game with two tracks; call passenger trains with keys 1–5, cargo trains interrupt, semaphores show occupancy, win at 1000 served, lose at 250.
Create a new Scratch project named train station, remove sprite and backdrop, import prepared sprites and the station backdrop, and upload semaphore red costumes with a passenger and cargo train.
Set up default positions for sprites at game start by centering the keyboard and semaphores at 0,0, switching to green costumes, and preparing the person and cargo train visibility.
Create a five-train station in Scratch by duplicating costumes, colorizing labels, and mapping keys to train lines with variables, clones, and track-occupancy controls.
Show a train on the station by moving it left with repeat until blocks, adjusting x position and speed, and using clones and track-occupancy variables.
Set up semaphores for two tracks to switch green or red based on occupancy, using forever loops and two conditional blocks with and, plus delays.
Design a Scratch game where passengers of different colors appear as clones on a station, board matching color trains, and trigger win or game over.
Explore how to script a cargo train in Scratch by cloning trains, checking track occupancy on two tracks, and adjusting wait times based on passengers served to create engaging gameplay.
Add immersive train station sounds to the Scratch game by uploading six sounds, using fade in/out, and looping background terminal while managing volume and non-blocking sound blocks.
Understand how this Scratch train station uses variables to manage track occupancy and collect passengers, and how clones, waiting blocks, and deleting clones keep the game running smoothly.
In this course we will create game "Train station" in the Scratch programming language. We will learn by doing!
Difficulty level of this course: easy \ medium \ hard
Who is this course suitable for:
Teachers and parents who want to keep their children busy
Children and teenagers with with strong knowledge of Scratch
The course also contains theoretical explanations, but most of the course is practical. We will repeat or learn such areas as:
working with variables: what it is and why they are needed;
using variables as indicators of some events;
creating sprite clones: how to manage hundreds of clones at a time;
what is the purpose of "My blocks" and how it can help us to ease game logic.
The plot of the game:
we have 1 train station with 2 tracks on it;
we have 5 "lines" of the train - they have different colors. By clicking keys from 1 to 5 we can call a train to free track. If tracks are occupied, user's call will be ignored;
there is also Cargo train. It occupies any track occasionally in order to bring some mess our gameplay;
there are 5 types of passengers appear on the station. They can be collected only if they find a train with appropriate color on any track;
game ends if we serve 1000 passengers - in this case user win. Player lose if we reach 250 passengers located on the station simultaneously.
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.