You're looking at a sprite offset problem. The difference between your sprite's position and your camera's position is nothing. Therefore your sprite will appear to always be located at {0, 0}.
If you offset your camera's position by half of it's view height and width then it will appear to center your sprite.
cam.position = sprite.position;
cam.position.x -= cam.width / 2;
cam.position.y -= cam.height / 2;
Pixelfish
2010-10-27 20:22:58