# How to Make a Undo Action History Stack in Scratch (Step-by-Step) > Build an original Undo Action History Stack in Scratch (Clones, Lists & Data Features) with a minimal working prototype, clear variable setup, and common bug fixes. Step-by-step tutorial on how to make a undo action history stack in Scratch using original sprites, clean loops, and testable milestones. ## Step 1: Minimal Working Undo Action History Stack Prototype Start your Undo Action History Stack with one core loop: reset state on the green flag, handle player input or events, update positions/variables, and check win or feedback conditions. **Undo Action History Stack starter loop** - when green flag clicked -> initialize position, score, and state variables - forever -> update undo action history stack controls and core rule check - trigger sound, visual feedback, or next stage when condition is met Try it: A playable minimal Undo Action History Stack that you can immediately test and expand. ## Step 2: Common Pitfalls, Polish & Extensions Before adding extra levels or menus, verify that clicking the green flag once resets every variable cleanly. - Pitfall check: keep continuous key/collision checks inside a forever loop, not isolated hat blocks. - Polish idea: add a title screen, sound effects, and a personal high-score variable. - Challenge: remix one rule (speed, timer, or 2-player controls) and playtest with a classmate. - [All 240 "How to Make in Scratch" Guides](/en/how-to-make/): Browse all 12 project categories. - [60 Scratch Game Mechanisms](/en/mechanisms/): Deep-dive into scrolling, hitboxes, timers, and AI. Updated: 2026-11-24 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)