Skip to content

Tween chain with delay not working #7093

Closed

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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