Hi everyone,
I have this zoom function:
public function zoomCamera(amount:Number):void
{
if (camera.zoom + amount > 0)
camera.zoom += amount;
else
camera.zoom = 1;
if (camera.focus + amount > 0)
camera.focus += amount;
else
camera.focus = 1;
}
and it works perfectly while the camera is in this position:
http://dl.dropbox.com/u/4064417/Camera1.jpg
But once I take it to this position:
http://dl.dropbox.com/u/4064417/Camera2.jpg
and try to zoom back, I get this effect:
http://dl.dropbox.com/u/4064417/BadZoom.jpg
Why does this happen? Is there a problem with the focus or the zoom?
Or both?