Open
Description
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
}
]
});
}