Scratch 구현 가이드: How to Add an Undo Button Using a History Stack in Scratch
📌 이 페이지에서 배우는 내용
먼저 최소 동작 버전을 완성해 테스트한 뒤 속도, 소리, 스테이지를 확장해 보세요. Push each state onto a history list and pop the last item on Undo.
핵심 원리 및 구현 단계: Minimal Working Block Recipe
먼저 최소 동작 버전을 완성해 테스트한 뒤 속도, 소리, 스테이지를 확장해 보세요.
Push each state onto a history list and pop the last item on Undo.
Test this minimal version first, then tune numbers like speed, gravity, or timing to match your game feel.
Add an Undo Button Using a History Stack script
- before move: add state to [History]
- on Undo: load (item length of [History] of [History]) and delete last
직접 해보기: Makes puzzle and drawing apps much friendlier.
테스트 체크리스트 및 응용: Debugging Checklist & Next Steps
초록 깃발을 누르기 전에 결과를 예측하고 변수와 좌표 변화를 직접 확인하세요.
If it behaves unexpectedly, verify initial variable resets on the green flag and check that continuous checks sit inside a forever loop.
테스트 체크리스트 및 응용
초록 깃발을 누르기 전에 결과를 예측하고 변수와 좌표 변화를 직접 확인하세요.
이 안내서는 학습을 돕기 위한 자료입니다. Scratch 화면 구성과 이용 약관은 업데이트될 수 있으므로 공식 사이트 정보도 함께 확인해 주세요.