Advanced Lists: Parallel Tables & 2D Grids
📌 What you will learn
Store multi-field records (like enemy X, Y, HP) or 2D tile maps cleanly using Scratch lists.
Core approach
Because Scratch lists are 1D, represent a 2D map of width W by converting (row, col) to index ((row - 1) * W + col).
- Keep parallel lists (enemy_x, enemy_y, enemy_hp) synced by clone_id.
- Use "Run without screen refresh" when scanning large lists.
- Delete all temporary lists on green flag click.
Pro tip & next steps
Data-driven lists let you build 20 levels with the exact same engine.
FAQ
What is the best first step for "Advanced Lists: Parallel Tables & 2D Grids"?
Keep parallel lists (enemy_x, enemy_y, enemy_hp) synced by clone_id. Data-driven lists let you build 20 levels with the exact same engine.
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.