Skip to content

Waiting-related functions do not work correctly #2

@Muhtasim-Rasheed

Description

@Muhtasim-Rasheed

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions