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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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