DadoTc Posted May 8, 2017 Share Posted May 8, 2017 Hi, I updated phaser lib from older version to 2.6.2 and now there is no more "alpha" property in "sprite" object. I see "alpha" is still available using tween. But what if I want to change it directly like it was in previous version? : this.background = this.add.sprite(0, 0, 'back'); this.background.alpha = 0; thanks Link to comment Share on other sites More sharing options...
DadoTc Posted May 11, 2017 Author Share Posted May 11, 2017 nobody? Link to comment Share on other sites More sharing options...
Rootar Posted August 14, 2017 Share Posted August 14, 2017 thanks for advice with tween, but this is weird solution. Why they delete this properties? Link to comment Share on other sites More sharing options...
samme Posted August 14, 2017 Share Posted August 14, 2017 Sprite alpha didn't change at all in 2.6, you can keep using it just like before. Link to comment Share on other sites More sharing options...
Titus Posted August 14, 2017 Share Posted August 14, 2017 Not too sure about v2.6.2 but I'm using v2.8.2 (CE) which is still updated and sprite definitely has an alpha property. I'd suggest using that version if you can. Link to comment Share on other sites More sharing options...
Titus Posted August 14, 2017 Share Posted August 14, 2017 @samme actually it looks like it was removed. Well I couldn't see it in the docs anyway: https://phaser.io/docs/2.6.2/Phaser.Sprite.html Link to comment Share on other sites More sharing options...
Rootar Posted August 15, 2017 Share Posted August 15, 2017 You must download CE version 2.6.2 don't have sprite.alpha in public variables Link to comment Share on other sites More sharing options...
samme Posted August 15, 2017 Share Posted August 15, 2017 It's still in v2.6.2, I promise, it's just missing from the docs. Link to comment Share on other sites More sharing options...
Recommended Posts