Skip to content

Tween.stop(true) fires onComplete event without target #1450

@NiMeDia

Description

@NiMeDia

Dear Phaser team,

facing an issue where I call the tween.stop function with a true complete flag.

All I wonder is why in this case the tween.target isn't forwarded to the onComplete event, like it is done in the update loop.

I am currently expecting the tweens target in my event handler, not the tween itself as the first argument, what results in an exception if I complete the tween manually.

Think it would be better if the interface is the same for all cases, correct me if I am wrong.

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