Hey Forum Friends! Could you help me figure this out?
I have two objects moving on the screen. I have a camera sprite that I want to position between the two sprites regardless of where the two sprites move. Theoretically, I want to zoom in and out depending on the distance between the two sprites. (I think I can figure that out, but the positioning of the camera is what I am stuck on.)
I am guessing I will need a variable MidPoint with Distance(Sprite1.x, Sprite1.y, Sprite2.x, sprite2.y) / 2. But now how to I get the X and y? Using sin and cos? I am lost...
Thanks in advance! <img src="smileys/smiley4.gif" border="0" align="middle" />