I have looked at almost all of the posts regarding the camera in cocos2d, but none seem to address these issues:
1. How do you make a camera that follows around a sprite no matter where it goes in a world?
2. How do you make the camera not jitter?
Note: Right now I am using a mixture of chipmunk and cocos2d, which when I implement any camera function the sprite (attached a to a cpBody and cpShape) jitters.
Below is the camera code implemented into the accelerometer function, which makes the sprite move:
[self.camera setCenterX:Wheel.position.x centerY:Wheel.position.y centerZ:0];
[self.camera setEyeX:Wheel.position.x eyeY:Wheel.position.y eyeZ:415];
v 0.99.0 Camera Issues
(1 post) (1 voice)-
Posted 1 year ago #
Reply
You must log in to post.