Jump to content

Camera shake black bars problem


klonas
 Share

Recommended Posts

Hi,

I have a problem with camera.shake(). It shakes the screen instead of moving the camera and black bars appear.
In this example, it works fine. What am I doing wrong?

Im using Phaser 2.8.3 CE

if (player.weapon.canFire) {
    var bullets = player.weapon.fire();
    game.camera.shake(0.05, 400);
}

cameraGif.gif

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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