Jump to content

crispin

Members
  • Content Count

    1
  • Joined

  • Last visited

About crispin

  • Rank
    Newbie

Contact Methods

  • Twitter
    dvlpstrcrispin
  1. I've been using `game.camera.onShakeComplete` for running functions after animations are complete, but each time it adds a new instance to be run. I've been using game.camera.shake(0.02, 250, true, Phaser.Camera.SHAKE_HORIZONTAL, true); game.camera.onShakeComplete.add(function(){runFunction()}, this) to run my code, but I just realised that this adds another function to be run each time, and I can't really have just one for the entire game because they need to do different things. My questions really boil down to: Can I have a callback per game.camera.shake or can I onl
×
×
  • Create New...