Skip to content

Sprites added to containers do not animate correctly unless added to the scene as well #3876

@halgorithm

Description

@halgorithm

Phaser version: 3.11.0
Code example: http://jsfiddle.net/7od1qk26/8/

Expected behavior: If a sprite is added to a container and its container is added to the scene, the sprite should display and animate correctly.

Actual behavior: Sprites will only animate correctly if they are added directly to the scene, even if their container was already added to the scene. Otherwise, the sprite displays the first frame of the requested animation and then gets stuck.

Similar issues: #3773


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions