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

Animation created from atlas: misaligned hitbox #1201

Open
CodeAndWeb opened this issue Sep 12, 2023 · 1 comment
Open

Animation created from atlas: misaligned hitbox #1201

CodeAndWeb opened this issue Sep 12, 2023 · 1 comment
Labels

Comments

@CodeAndWeb
Copy link

When an animated sprite is created with createAnimationFromName(), the hitboxes of the animation frames are misaligned:

animation-hitbox

When a sprite is created with atlas.createSpriteFromName() the alignment of the hitbox is OK.

To Reproduce

  1. git clone https://github.com/CodeAndWeb/melonjs-sprite-sheet-example.git
  2. npm run dev
  3. Press 's' to display debug panel
  4. Check 'hitbox' to display hitboxes
@CodeAndWeb CodeAndWeb added the Bug label Sep 12, 2023
@obiot
Copy link
Member

obiot commented Sep 13, 2023

that's weird ! Thank you for reporting this, I'll look into it as soon as possible 👍

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

No branches or pull requests

2 participants