How to make a button that fades out

Hello,

New to Phaser 3 and JavaScript as a whole so please forgive me. I’ve been trying to figure out how to make an image fade away upon clicking it, however Google and YouTube have only been showing me results on how to fade in a sprite and how to fade out screens. Does anyone have a solution? Thanks!

Tween the opacity.

For instance like this.

1 Like