How to Fading In A Sprite button phaser 3

Hi Van_Hu. Welcome to the forums! :slight_smile:

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 :slight_smile:

3 Likes