Jump to content

ALPHA on PHASER 2.2


maxmax
 Share

Recommended Posts

Hi, 

 

 

Before the new version of phaser 2.2, when an object has need disappearing progressively we used : tween with alpha to 0 and appearing alpha to 1.
 
But with the new version, alpha change the transparence AND the luminosity or the contraste. This isn't good.. ! 
 
An explication or an solution ? 
 
(sorry for my english)
 
// To hide objectgame.add.tween(my_object).to({alpha:0}, 550, Phaser.Easing.Linear.None, null, 0).start();// or to show objectgame.add.tween(my_object).to({alpha:1}, 550, Phaser.Easing.Linear.None, null, 0).start();
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...