GUIDES

Scratch guides

Step-by-step Scratch tips for planning a game, using variables, adding score, building quizzes, and testing movement.

Scratch game ideas

A small game with one clear objective is easier to build and test than a long list of unrelated features.

  1. Choose the main action: move to collect, navigate a maze, answer a question, catch an item, or click an object.
  2. Write a finish condition the player can see, such as reaching a score or touching the exit.
  3. Add one challenge and decide what happens on success and failure.
  4. Describe those choices in one or two sentences before adding optional details.

Quick check: Can someone explain the goal after playing for a few seconds? If not, make the objective more visible.

How Scratch variables work

A variable stores a value that can change while a project runs. Scores, lives, timers, and upgrade levels are common examples.

  1. Open the Variables category and choose "Make a Variable". Name it for the value it stores, such as score or lives.
  2. Choose whether the variable belongs to all sprites or only the current sprite; use a shared variable when multiple sprites need the same score.
  3. At the start of a game, use a green-flag script to set each value to its starting amount.
  4. Show the variable on the stage when the player needs it, and hide it when it is only temporary.

Quick check: Restart with the green flag and check that every variable returns to the correct starting value.

How to add scoring

A score should change in response to a deliberate player action and make progress toward a visible goal.

  1. Create a score variable and set it to zero when the green flag is clicked.
  2. When the player collects or clicks the scoring object, change score by the intended number of points.
  3. If the collision stays true for several frames, wait until the player is no longer touching the object before awarding another point.
  4. Check whether score has reached the target, then show a clear win message or switch to the next part of the game.

Quick check: Collect one item and confirm the score rises exactly once; then reach the target and confirm the win happens at the right time.

How to create a quiz

A Scratch quiz can ask a question, compare the reply with an answer, and keep a score across several questions.

  1. Use the Sensing block "ask [question] and wait". Scratch stores the reply in the "answer" reporter.
  2. Use an if/else block to compare answer with the correct text; give feedback for both a correct and an incorrect reply.
  3. Change the score only when the answer is correct, then ask the next question.
  4. At the end, display the final score and explain what it means. Keep spelling and capitalization in the expected answer clear.

Quick check: Try one correct and one incorrect reply and check that feedback and score behave as intended.

How to create enemies

Give an enemy a predictable movement and make contact with the player produce one understandable result.

  1. Choose a simple movement pattern, such as moving across the stage or falling from the top.
  2. When the enemy touches the player, reduce a life or end the game.
  3. Move or hide the enemy after contact so the same collision is not counted on every frame.
  4. Reset the enemy to its starting position when it is caught, defeated, or reaches the edge.

Quick check: Hold the player against the enemy and confirm that one collision does not remove all lives at once.

How to make a platformer

A basic platformer needs horizontal movement, gravity, a jump, and a reliable way to stop on platforms.

  1. Create a vertical-speed variable. Each frame, subtract a small gravity amount and change the player’s y position by that speed.
  2. When the jump key is pressed while the player is standing on a platform, set vertical speed to a positive value.
  3. After moving, check for platform contact. Undo the vertical step and set vertical speed to zero when the player lands.
  4. Add a reachable goal and place collectibles where the player can safely jump to them.

Quick check: Check that the player falls onto platforms, cannot jump repeatedly in mid-air, and can reach the goal.

How to create animations

Costumes can show different poses, while movement and timing make those poses feel like an animation.

  1. Choose a sprite with two or more costumes that show different poses.
  2. Use a loop with "next costume" and a short wait to cycle through the poses.
  3. Add movement to the same loop if the character should travel across the stage.
  4. For a multi-scene story, use clearly named broadcasts and wait for each scene’s dialogue to finish before starting the next one.

Quick check: Adjust the wait until the animation is readable, then confirm that scene changes do not make dialogue overlap.

Put a Scratch idea into practice

Try a ready-made prompt on the examples page, or read how Idea2Scratch turns a plan into a project. You can edit the plan before downloading the .sb3 file.

Start creating