klonas Posted August 16, 2017 Share Posted August 16, 2017 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); } Link to comment Share on other sites More sharing options...
samme Posted August 16, 2017 Share Posted August 16, 2017 I think you're just seeing the empty space outside the world bounds. You'll see this same thing in the example if you visit the corners and then shake the camera. Link to comment Share on other sites More sharing options...
klonas Posted August 16, 2017 Author Share Posted August 16, 2017 This is inside the world bounds and this doesn't just happen in one corner, the whole screen has black bars. Link to comment Share on other sites More sharing options...
Recommended Posts