vito Posted October 6, 2014 Share Posted October 6, 2014 I am making a game with Phaser. I used this tutorial: http://www.photonstorm.com/phaser/tutorial-making-your-first-phaser-game I want the camera to follow the player when it walks, but i dont know how to do that. I attached my game so you can take a look at it.Oorlogsgame.zip Quote Link to comment Share on other sites More sharing options...
CuriousMG Posted October 6, 2014 Share Posted October 6, 2014 You should do something like: game.camera.follow(player_sprite); Check the Phaser Examples, this one is probably what you are looking for, but there are more on the camera. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.