All of the methods that I’ve seen for getting a camera to follow a player in Cocos2d have been either convoluted or not usable. Is there a simpler way to just make a camera that is centered on the player for a TDS?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The easiest way I know is to use CCFollow. Put it in your init method after you declare your sprite.
or set a world boundary if you have a boundary set.