Summary
Right now, when a Sprite is told to wait, it pauses — but the rest of its script keeps running until the next frame.
In Scratch, the script should pause execution immediately when waiting, and resume exactly where it left off after the wait is over.
What to do
- Look at how
Sprite::step() works.
- Fix how
Sprite::time_waiting is checked and updated.
- The sprite should not continue executing if it’s still waiting.
- Test the fix with a sprite script that uses
wait() commands between actions.
Difficulty
Beginner-to-intermediate. You’ll be editing game logic code and testing behavior