Hi there,

Im willing to rotate my mouse around my player entity.
It is a 3rd person cam and mouse rotate 360 degrees around the player.

This can be done by right mouse button.

I got this so far now i can change it allready with the mouse but i can not get it so that i rotate around the player so i can face the entity's front.

Code:
function Camera_Action()
{
	var mouseR_onhold = 0;
	
	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?
		{
			mouseR_onhold = 1;
			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);
	}
	
}


Hope someone can help me change my code so that it becomes what i want smile

Greetzzz, and thnx allready


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