A game I am working on in 3D requires that the player mouse down on an image and move this image to one of several end points. As the player moves the image towards the end points the image gets smaller and it gets bigger as the player moves the image away from the end points toward the forward part of the game.
I'm having problems keeping the image in the same relative position to the mouse pointer as I move the image around the game area. I can make the image proportionally bigger and smaller as I move it but it keeps getting away from the mouse pointer as it is being moved back and forth.
I need that the image does not move away from the mouse pointer and stay relative all the time (just like it does when moving the image as a static picture).
I'm having problems keeping the image in the same relative position to the mouse pointer as I move the image around the game area. I can make the image proportionally bigger and smaller as I move it but it keeps getting away from the mouse pointer as it is being moved back and forth.
I need that the image does not move away from the mouse pointer and stay relative all the time (just like it does when moving the image as a static picture).