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.git
npm run dev
- Press 's' to display debug panel
- Check 'hitbox' to display hitboxes