Skip to content

Tween chain with delay not working #7093

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
leemanhopeter opened this issue Apr 1, 2025 · 0 comments
Open

Tween chain with delay not working #7093

leemanhopeter opened this issue Apr 1, 2025 · 0 comments

Comments

@leemanhopeter
Copy link

leemanhopeter commented Apr 1, 2025

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
Projects
None yet
Development

No branches or pull requests

2 participants