NEW Explore the Scratch Block Dictionary, tutorials, textbook, and classroom guides

Start learning →

Save & Load Codes in Scratch

📌 What you will learn

Encode player level, coins, and unlocks into a short copy-pasteable string and decode it on load.

Core approach

Join values with a separator like "|" (e.g., "3|120|1") using a list display so players can triple-click and copy their save code.

  • Show the generated code in a 1-item list so users can copy it cleanly.
  • Parse the code back with a loop using "letter (i) of (answer)".
  • Validate loaded values so mistyped codes never crash the game.

Pro tip & next steps

Save codes work for all players—even without cloud variables or Scratcher status.

All Techniques Browse more English guides in this section. Learn more → Scratch Block Dictionary Look up any Scratch 3.0 block with examples. Learn more →

FAQ

What is the best first step for "Save & Load Codes in Scratch"?

Show the generated code in a 1-item list so users can copy it cleanly. Save codes work for all players—even without cloud variables or Scratcher status.

This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.