I use the following scripts in A7 (C-Lite):
Code:
VIEW* top_view =
{
     layer = 15;
     pos_x = 0;
     pos_y = 0;
     size_x = 200;
     size_y = 150;
     //arc = 60;
     flags = VISIBLE;
     x = Entplayer.x    // should be player.x (dosn't work)
     y = Entplayer.y;   // should be player.y (dosn't work)
     z = 900;           // playing with this
     //pan = 400;
} 

function init_topcam()
{
	while (player != NULL)
	{
		vec_set(top_view.x,playerEnt.x);
		vec_set(top_view.y,playerEnt.y);
		vec_set(top_view.z,playerEnt.z);
		//top_view.y = playerEnt.y;
		wait (1);
	}
}

// In a while(1) loop
init_topcam();


But it doesn't matter if I change the view.x, with other words the view position does not change. Apperently I'm not able to change camera position with view.x?

Any help is apreciated! smile

Last edited by Staakman; 12/03/08 08:53.