Hi Van_Hu. Welcome to the forums!
It’s not working because you’re using phaser 2 tween code. Try this instead.
this.tweens.add({
targets: sprite,
alpha: 1,
duration: 2000,
repeat: 1000
});
Heres a link to the phaser 3 tween examples: https://labs.phaser.io/index.html?dir=tweens/&q=
Hope this helps
3 Likes