pimous Posted March 22, 2015 Share Posted March 22, 2015 Hi,I would like to call fadePictureOut() after the fadePictureIn() effect.Any one has a solution ?function fadePictureIn() { game.add.tween(fondNight).to( { alpha: 1 }, 15000, Phaser.Easing.Linear.None, true);}function fadePictureOut() { game.add.tween(fondNight).to( { alpha: 0 }, 15000, Phaser.Easing.Linear.None, true);} Link to comment Share on other sites More sharing options...
rich Posted March 22, 2015 Share Posted March 22, 2015 var tween = game.add.tween(fondNight).to(blah blah); tween.onComplete.add(this.fadePicture, this); pimous 1 Link to comment Share on other sites More sharing options...
pimous Posted March 22, 2015 Author Share Posted March 22, 2015 It works ! Thank a lot ! Link to comment Share on other sites More sharing options...
Recommended Posts