Ok after 9 hours the movement does work but not correctly.

http://www.youtube.com/watch?v=xEnf0UkSm2w

in this video you can see that the bullets not in a line with the mouse cursor.
So it is very difficult to hit the red ghost laugh

I think you see what i mean.
How can i fix that?

Code:
if(mouse_right == 1)
{   		
   my.pan = (mouse_pos.x) * 0.75 * time_step;
   		
   vec_set(camera.x, vector(0, 0, 0)); 
   vec_rotate(camera.x, my.pan); 
   vec_add(camera.x, my.x); 
   vec_set(camera.pan, vector(my.pan, 0,0)); 
   my.pan +=180; 
}



ok i don't understand that vector-thing and i am very thankful when anyone could explain it to me or correct the codesnipet for me.

i looked in many forums and tested some code like that above.

Thank you

oOdarkPassionOo

Last edited by oODarkPassionOo; 10/27/11 20:35.