Jump to content

Camera onFadeComplete firing immediately, not after fade completes


Recommended Posts

So my code currently looks like:

this.game.camera.fade(0x112C06, 1500, true);
this.game.camera.onFadeComplete.add(this.goToZone(), this);

However this.goToZone()  is fired immediately, not after 1500 miliseconds. The fade effect does not show at all.

If I comment out the onFadeComplete line, the fading does happen successfully.

I've tried putting the onFadeComplete line before the fade line, but it has no effect.

Does anyone know what is missing here? I'm using Phaser CE 2.8.3.


Link to comment
Share on other sites


  • Recently Browsing   0 members

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