1 decade ago by fulvio
I use the following to fadeout text:
What's the best approach to fadein text if the alpha is 0 at init?
if (this.fadeOut) { if (this.idleTimer.delta() > this.lifetime) { return; } this.font.alpha = this.idleTimer.delta().map(this.lifetime - this.fadetime, this.lifetime, 1, 0); }
What's the best approach to fadein text if the alpha is 0 at init?