Jump to content

Was game.camera.follow(player) changed in any recent update?


hustlerinc
 Share

Recommended Posts

I just updated from 2.0.7, and I noticed my game breaking. For some reason the camera doesn't move, even though it worked fine with the older version. If I start in any corner of the world I can move my character around the screen until it reaches the camera center, where it gets stuck in all directions. And sometimes i can move again (seems random so far) but only between the camera center, and world bounds. The camera never moves.

 

I'm using this line of code (game is my main Phaser.Game object): 

game.camera.follow(player);

Am I using outdated code or is this a bug?

Link to comment
Share on other sites

EDIT: Sorry, just realised that this has already been noted in the Phaser 2.1.3 thread. There's apparently a fix in Phasers dev branch.

Yeah, that's the issue I'm having. Apparently nothing to do with the camera but instead the tiles not updating. The dev branch (2.1.4) is working if anyone else runs into the same issue and it can be downloaded here: https://github.com/photonstorm/phaser/tree/dev.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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