Skip to content

Imported Sprite has non-working broadcast #5425

Open
@10goto-10

Description

@10goto-10

Expected Behavior

A "When I receive event" in a project should be able to receive broadcasts, given that the correct message name is used, from an imported sprite.

Sprite "Outfielder" is created in one project and exported as a sprite. It has a broadcast with the name "Backdrop 1". That sprite is imported into another project.

When clicked, it should broadcast that name and the "when I receive Backdrop 1 block" in the stage should start its script.

Actual Behavior

The "when I receive block" in the stage is not activated by a broadcast from an imported sprite. Both have the correct message name.

Steps to Reproduce

See the case study: https://scratch.mit.edu/projects/1168628637/

Steps:

  1. Create a new project with the sprite "outfielder". Add a single script "when clicked" broadcast message "Backdrop 1".
  2. Export the outfielder sprite.
  3. Create a new project with banana sprite and add backdrops for "Bench with View", "Chalkboard", and "Canyon".
  4. Add when I receive broadcasts for "Backdrop 1" and "Backdrop 2". "Backdrop 1" script switches to the Canyon backdrop and "Backdrop 2" switches to the
    Chalkboard backdrop.
  5. Import the Outfielder sprite.
  6. Click on the banana and see the Chalkboard backdrop.
  7. Click on the outfielder and notice that nothing happens.

System Details

I created this on my Windows 10 desktop using the offline Scratch editor.

Forum topic.

This is related to the bug reported here https://scratch.mit.edu/discuss/topic/819521/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions