Open CodeAndWeb opened 1 year ago
When an animated sprite is created with createAnimationFromName(), the hitboxes of the animation frames are misaligned:
createAnimationFromName()
When a sprite is created with atlas.createSpriteFromName() the alignment of the hitbox is OK.
atlas.createSpriteFromName()
To Reproduce
git clone https://github.com/CodeAndWeb/melonjs-sprite-sheet-example.git
npm run dev
that's weird ! Thank you for reporting this, I'll look into it as soon as possible 👍
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