Original Post
I made this harder than it needs to be by programming the engine in the way I did, but here's my question. I want to create a simple zooming effect with 2D sprites -- simply making the on-screen picture larger or smaller with no "pseudo-3D". I'm stuck on what kind of math to apply in order to get the camera to zoom in, but still stay on "target", as simply blowing out the vectors will throw the camera off-center. With my engine, (0,0) is the Top-Left corner of the screen as opposed to the center. Changing the Camera X higher will move the image to the left. I've successfully gotten the image to zoom in and out, but my only problem is to keep the camera 'centered' on its target. CameraZoom = 1 means that the image isn't zoomed. CameraZoom = 2 means that the image is scaled x2. CameraZoom = .5 means that the image is "x2" away. If anymore clarification is needed, let me know. Thanks a lot in advance. [Edited by - Rokkuman on January 3, 2009 1:43:36 PM]