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

sprite squashing #80

Open
raynecloudy opened this issue Apr 2, 2024 · 4 comments
Open

sprite squashing #80

raynecloudy opened this issue Apr 2, 2024 · 4 comments
Assignees
Labels
bug Something isn't working editor issue with the editor help wanted Extra attention is needed

Comments

@raynecloudy
Copy link
Collaborator

I have found a bug!

  • Operating System: linux mint
  • Browser: google chrome (latest version)

Description
when i upload a new sprite costume, it squashes it to become the size of the dog costume.

How to Reproduce

  1. open editor
  2. go to "costumes" tab
  3. click "choose file"
  4. select file
  5. look at project player!

Expected Behavior
not to squash

Screenshots
Screenshot from 2024-04-02 14-38-30
Screenshot from 2024-04-02 14-38-40
Screenshot from 2024-04-02 14-39-49
Screenshot from 2024-04-02 14-39-57
Screenshot from 2024-04-02 14-40-02

@raynecloudy raynecloudy added bug Something isn't working editor issue with the editor labels Apr 2, 2024
@raynecloudy raynecloudy added this to the working editor milestone Apr 2, 2024
@rubiidev18alt
Copy link
Collaborator

Hi there! 😊

Thank you for raising the issue about sprite squishing. I understand how frustrating it can be when sprites don’t look quite right in the project.

To address this, I recommend resizing the sprites to match the original image size while ensuring they fit within the 480x360 project screen. This way, the sprites won’t be squished, and they’ll maintain their proportions.

Feel free to give it a try, and let me know if you need any further assistance. We’re here to help!

Best regards, Your friendly neighborhood developer 🌟

@rubiidev18alt rubiidev18alt added the help wanted Extra attention is needed label Apr 2, 2024
@nmsderp
Copy link
Collaborator

nmsderp commented Apr 2, 2024

Hi there! 😊

Thank you for raising the issue about sprite squishing. I understand how frustrating it can be when sprites don’t look quite right in the project.

To address this, I recommend resizing the sprites to match the original image size while ensuring they fit within the 480x360 project screen. This way, the sprites won’t be squished, and they’ll maintain their proportions.

Feel free to give it a try, and let me know if you need any further assistance. We’re here to help!

Best regards, Your friendly neighborhood developer 🌟

what the ai generated message was that

@raynecloudy
Copy link
Collaborator Author

HAHAH I WAS THINKING THE SAME THING

@dumorando dumorando reopened this May 4, 2024
@dumorando
Copy link
Collaborator

Hi there! 😊

Thank you for raising the issue about sprite squishing. I understand how frustrating it can be when sprites don’t look quite right in the project.

To address this, I recommend resizing the sprites to match the original image size while ensuring they fit within the 480x360 project screen. This way, the sprites won’t be squished, and they’ll maintain their proportions.

Feel free to give it a try, and let me know if you need any further assistance. We’re here to help!

Best regards, Your friendly neighborhood developer 🌟

someone got a little lazy


the reason for this is because in sketch.js it has a constant image width and height

let imgWidth = 72.54920959472656; // Initial width of the image
let imgHeight = 96.26698303222656; // Initial height of the image

i tried to set those values to the newly loaded images values in e92deb4 but it didnt work so i reverted it
whoops

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working editor issue with the editor help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants