Quote:

camera.y = - ((right.x-left.x) + 50);



I don't know this tut but try change to:
camera.y = - ((right.y-left.y) + 50);


Never say never.