Skip to content

Animation's delayedPlay fires "animationstart" immediately #4426

@bdaenen

Description

@bdaenen

Version

  • Phaser Version: v3.16.2-FB
  • Operating system: Any

Description

When calling physicsSprite.anims.delayedPlay(delay, key), the animationstart event is immediately fired. I expect it to be fired as soon as the animation actually starts (after the delay).

Example Test Code

https://jsbin.com/rupolepume/edit?js,output

Additional Info

I looked into making a PR for this, but since it seems to work by actually starting the animation and setting nextTick += delay I'm not sure how to proceed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions