Skip to content

Animation created from atlas: misaligned hitbox #1201

@CodeAndWeb

Description

@CodeAndWeb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions