Skip to content

Issue with is-touching Block #3762

Open
@willywillycow

Description

@willywillycow

PLEASE DOWNLOAD AND OPEN THIS PROJECT FIRST

测试作品.sb3.zip

Expected Behavior

When you click the green flag, the script in the dot sprite runs and detects touching the square sprite, and the sprite says "true".

When you click the script in the dot sprite, it runs and detects touching the square sprite, and the sprite says "true".

Actual Behavior

When you click the GREEN FLAG, the script in the dot sprite runs and detects touching the square sprite, and the sprite says "true".

When you click the SCRIPT IN THE DOT SPRITE, it runs. FIRST TIME the script detects touching the square sprite and the sprite says "true", BUT THE SECOND TIME the script doesn't detect touching the square sprite for some reason and therefore the sprite doesn't say "true".

Steps to Reproduce

  1. Make a sprite with a costume of a 1x1 dot in bitmap mode.
  2. Make another sprite with a random costume.
  3. Move the dot sprite so that you are sure that it touches the random costume sprite. If you are too blind to see, you can know this by adding the script in the example project to your dot, changing the targeting sprite to your random costume sprite, and then clicking the GREEN FLAG, letting the script run to check if they are touching.
  4. Get an if-touching block in the dot sprite, and click on it to let it detect if touching the random costume sprite.
  5. CLICK on the block and let it run.
  6. First time returns "true", the second time gives you up & lets you down.

In addition, changing the dot's costume and restoring it (manually, as far as I've tested) seems to let it return to the original "state" of first time yep second time whoops.

System Details

Don't think it matters because I've tried it both in the app and the browser, asked others to try it and got the same result.

But anyway I got MacBook Pro (Retina, 13-inch, Late 2012) (I know it's rubbish but don't judge it), macOS Catalina 10.15.7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions