scratchfoundation / scratch-vm

Virtual Machine used to represent, run, and maintain the state of programs for Scratch 3.0
http://scratchfoundation.github.io/scratch-vm/
BSD 3-Clause "New" or "Revised" License
1.22k stars 1.51k forks source link

Color sensing and Costume import problem #1625

Open Mr-Dave2 opened 6 years ago

Mr-Dave2 commented 6 years ago

Expected Behavior

The sensing block "Color X is touching Color Y" should produce the same result when Scratch 2 or Scratch 3 is used to run a project.

Actual Behavior

The color sensing fails when the project is run under Scratch 3.

Steps to Reproduce

See this project and the following test case: This project: https://beta.scratch.mit.edu/#247847974 (from GAMER_IANXD and reported in this post: https://scratch.mit.edu/discuss/topic/316849/?page=1#post-3266741 )

And I made this test case: Compare, Scratch 2 link, and Scratch 3 link.

Operating System and Browser

Windows 7, Firefox 62.0.2

Also,

The Scratch 3 import of the figure costume is wrong. Look at the costume in the paint editor. You will need to zoom about 8 times to see the missing torso at the bottom right of the editing area. The color sensing can be partially made to work by dragging the torso back under the head. I've gotten various results, perhaps because my mouse-editing skills are not precise. Or, if you just delete the torso, then the color sensing will work as expected.

thisandagain commented 6 years ago

/cc @ktbee @kchadha

thisandagain commented 6 years ago

@ktbee This one is related to a few other issues we have filed related to differences in tolerances for touching color. These blocks are used widely so this is likely to be high impact.