03-28-2006, 03:26 AM
K, let's see if I can explain this, I don't have the work with me.
I have the bowling lane images drawn on screen of 640x480.
Part 1.The background image is 383x480 (if I remember right) and aligned at (0,0). The first ball image, shown at (mx,448) mx being the mouse X position. Then, using the mouse, you select the x position of the ball.
Part 2. Now that the ball X position is set, the image of the lane (background) goes to a point with the pins at the end. I want a line at (ballx + 32(because the ball is 64px across),448)-(mx,300) mx is the mouse again. When running it, the line seems to be too long at the ends, and I want the line to shorten when moving to the edges.
Drawing a circle at (ballx + 32,480),150 (I think) will give a pretty good curve, but I don't know how to make the line length follow that curve.
This would be way easier if I had the actual thing, but I'm not by it and I didn't put it on my jumpdrive.
I have the bowling lane images drawn on screen of 640x480.
Part 1.The background image is 383x480 (if I remember right) and aligned at (0,0). The first ball image, shown at (mx,448) mx being the mouse X position. Then, using the mouse, you select the x position of the ball.
Part 2. Now that the ball X position is set, the image of the lane (background) goes to a point with the pins at the end. I want a line at (ballx + 32(because the ball is 64px across),448)-(mx,300) mx is the mouse again. When running it, the line seems to be too long at the ends, and I want the line to shorten when moving to the edges.
Drawing a circle at (ballx + 32,480),150 (I think) will give a pretty good curve, but I don't know how to make the line length follow that curve.
This would be way easier if I had the actual thing, but I'm not by it and I didn't put it on my jumpdrive.