melonJS
melonJS copied to clipboard
Animation created from atlas: misaligned hitbox
When an animated sprite is created with createAnimationFromName(), the hitboxes of the animation frames are misaligned:
When a sprite is created with atlas.createSpriteFromName() the alignment of the hitbox is OK.
To Reproduce
git clone https://github.com/CodeAndWeb/melonjs-sprite-sheet-example.gitnpm run dev- Press 's' to display debug panel
- Check 'hitbox' to display hitboxes
that's weird ! Thank you for reporting this, I'll look into it as soon as possible 👍