Skip to content

Tween chain with delay not working #7093

Open
@leemanhopeter

Description

@leemanhopeter

Version

  • Phaser Version: 3.88.2
  • Operating system: Windows 11
  • Browser: Chrome

Description

If there is a non zero delay specified in the tween chain, the tween chain will not start

Example Test Code

    const config = {
        type: Phaser.AUTO,
        width: 800,
        height: 600,
        scene: {
            preload: preload,
            create: create,
        },
    };

    const game = new Phaser.Game(config);

    let sprite;

    function preload() {
        this.load.image('mySprite', 'https://labs.phaser.io/assets/particles/red.png');
    }

    function create() {
        sprite = this.add.image(400, 300, 'mySprite');

        this.tweens.chain({
            delay: 1,
            tweens: [
                {
                    targets: sprite,
                    x: 500
                }
            ]
        });
    }

Additional Information

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