Hi thnx for your reply,

I had sort of the same in first place did the same as it does now.
It places the camera in the center coords of the player and looks up.
and i cant rotate it.
aswell the camera isnt attached to the player anymore.


code that i use atm:
Code:
function Camera_Action()
{
		var mouseR_onhold = 0;
		var centerx = 0; // centre of circle (x)
		var centery = 0;  // centre of circle (y)
		var radius = 400; // radius of circle
		var theta = 0; // degrees done around the circle
		var temp;
		//
	
		camera.tilt = -15;
		while(1)
		{
				vec_set(camera.x,vector(-180,0,50));
				vec_rotate(camera.x,my.pan);
				vec_add(camera.x,my.x);
				camera.pan = my.pan;
				if(mouse_right) // right Mousebutton pressed?
				{
						mouse_map = NULL;
						camera.pan -= mouse_force.x;
						my.pan -= mouse_force.x;
						camera.tilt += mouse_force.y;
				}
				
				if(!mouse_right && mouseR_onhold == 1)
				{
						mouse_map = arrow;
				}
		
				wait(1);
		}
		
}


i like to use this but then rotate like the most online RPG games.
Now it rotates with the player aswell, but i want to rotate around the player so i can see its face or watch my back.

hope u can help me,

Greetzzzz,

Last edited by SurudoiRyu; 08/18/08 17:25.

-The Dragon's Eye is alway's watching you!-