Skip to content

Vector graphics have enlarged collision boxes [Bug] #2860

Open
scratchfoundation/scratch-render
#479
@SAODTHEKING

Description

@SAODTHEKING

Expected Behavior

Like scratch 2.0 vector graphics, two sprites return touch output when they are touching.

Actual Behavior

Scratch 3.0 vector graphics return touch output while there is a noticeable distance between the two sprites

increasing sprite size, increases the collision box effect. just like as if it was squared to the size of the sprite (collision box = sprite size^2) or something like that

Steps to Reproduce

I actually have a project ready, its completely broken in 3.0.
try (Single player) it in 2.0, then view it on 3.0
https://scratch.mit.edu/projects/198901436/

Just make a simple level and a simple sprite
enlarge the level to increase the effect
and put an if touching script to =1 else =0
you will find in 3.0 there is a noticeable distance when it gives touching output

Operating System and Browser

Win10/Chrome

Update

After further investigation, i found that zooming in from the browser, decreases the effects of this issue.
And when i reached 300% zoom, the problem fixed itself but not completely.
At 300% zoom, the problem is present but at 5% of the original issue, which is quite good.

And i also tried different browsers, they also have the same issue.

In conclusion, this issue is related to the browser zoom and the editor (Change size) block, i think there is a misunderstanding between them. Because when i changed every (change size) block to 100%, everything worked and the issue disappeared.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions