Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

collision detection in costume editor becomes offset when resizing stage #965

Open
lemmeviewthecode opened this issue Nov 4, 2024 · 2 comments

Comments

@lemmeviewthecode
Copy link

lemmeviewthecode commented Nov 4, 2024

Expected Behavior

After resizing the stage, everything should act just as it was without resizing in the costume editor, just with an increased aspect ratio.

Actual Behavior

collision detection is slightly off depending on how far to the left or right you are in the costume editor. (might possibly be caused by an incorrect multiplication in the code, but i'm not that much of a programmer, so I'm not sure.)

here's a video of the bug in effect:
Screen recording 2024-11-04 3.19.02 PM.webm

Steps to Reproduce

  1. draw a vector costume with multiple shapes on each side of the screen. preferably to the point where they're either off-screen or nearly off-screen. alternatively, simply upload this SVG:
    costume1 (1)

  2. resize the stage to "widescreen" (640x360) or larger.

  3. attempt to scale the shapes either vertically or horizontally, or try to use the reshape tool on them. you'll notice that your clicks are somewhat offset on the horizontal axis. if you used the SVG provided, try adjusting some points on the stars next to "P1".

Operating System and Browser

Google ChromeOS Version 129.0.6668.112 (Official Build) (64-bit), Chrome 129 on Chrome OS 14541

@GarboMuffin
Copy link
Member

GarboMuffin commented Nov 4, 2024

Show us something concrete to reproduce this, not "eventually, you will come across the same issue."

@lemmeviewthecode
Copy link
Author

acknowledged, the issue has been edited with steps to reproduce it, including footage of the bug in action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants