
Introduce a scratch elevator game in a multi-floor building, where players drive the elevator to deliver passengers to their target floors using keys 0–9, q, and x, with no end.
Create a new Scratch project, upload a background and elevator sprite with costumes, and organize action costumes in sequence to prepare the game field.
Set up static sprites and costumes for the elevator by placing it at x0 y0 and resizing. Use when green flag clicked to go to x y and show.
Define core elevator behavior in scratch by building an action queue from key presses, using clones and costumes, and storing levels in a floors queue with duplicate safeguards.
Define the elevator logic using a floor queue to calculate target y position (target floor times 30), move up or down, and remove served floors after waiting.
Explains managing a levels queue in Scratch with an X button to remove the last element, and introduces an is_removing indicator to prevent multiple removals.
Design a custom elevator queue interface in Scratch by positioning clones with dynamic y coordinates based on queue length, using shift and last action square to remove elements.
Describe passenger behavior by spawning clones of the human sprite, assigning a random floor and side (left or right), and cycling through 11 floor costumes with randomized timings.
Describe passenger behavior in a scratch elevator game using forever loops, doors are open logic, touching the elevator, random cabin placement, and a floor queue to board and alight.
Upload and assign sounds in Scratch, trigger cancel and button sounds on key actions, and play elevator engine and dink sounds while moving, stopping all sounds on arrival.
Conclude the Scratch elevator game by exploring endless gameplay, using lists and variables to manage floors and passengers, and fine-tuning coordinates and sprite communication with forever loops and if blocks.
In this course we will create game "Elevator" 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 list variables: what it is and why they are needed;
using variables as indicators of some events and how to manage these events across your Sprites;
creating sprite clones: how to manage hundreds of clones at a time.
The plot of the game:
we have a building with 11 floors and one elevator;
we need to manage elevator's moving by pressing keys from 0 to 9 and "q" - they represent building levels;
we have a queue of floors for our elevator, it will be moving according to the order of pressed keys;
passengers will be appearing on a random floor with a random target floor;
when passenger sees the elevator on it's floor, it will move inside the elevator's cabin; when this passenger find out that elevator on the desired floor, it will disappear;
this game doesn't have any restrictions in passenger number inside the elevator or on the game screen; feel free to add you own logic of finishing the game (for example, when you reach some served passengers number).
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 code 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.