I've already read the manual ,but when I try to do it ,the engine stops working and Windows displays "acknex.exe has stopped working" message:

Here's my code (not the main ,the included):

Code:
VIEW* movie_camera1 =
{
	layer = 5;
	pos_x = 0;
	pos_y = 0;
	size_x = screen_size.x;
	size_y = screen_size.y;
	arc = 60;
	x = 5800;
	y = 0;
	z = 2036;
	tilt = -20;
	pan = 181;
	genius = NULL;
	flags = UNTOUCHABLE;
} 
/////////////////////////////////////////

TEXT* location_info =
{
	pos_x = 300;
	pos_y = 500;
	layer = 0;
	font = "coure#25b";
	blue = 255;
	green = 20;
	red = 25;
	string("L");
}





/////////////////////////////////////


function p_explo1fade(PARTICLE *p)
{
    p.alpha -= 3*time_step;
    if (p.alpha <= 0) p.lifespan = 0;
}

///////////////////////////////////

function p_explo1(PARTICLE* p)
{
   VECTOR explo1_speed;
   vec_set(explo1_speed,vector(0.5-random(1),0.5-random(1),0.5-random(1)));
   vec_set(p.vel_x,explo1_speed.x);
   set(p, MOVE | BRIGHT | TRANSLUCENT);
   p.alpha = 100;
   p.size = 16;
   p.bmap = "explo+13.tga";
   p.gravity = 0.2;
   p.event = p_explo1fade;
}


/////////////////////////////////

function play_movie1 ()
{
	var CamPanStore;
	var time_passed = 0;
	
	VECTOR camera_speed;
	
	if (p_able_to_move == 0)
	{
		set(camera,0);
		set(movie_camera1,SHOW);
   }
   CamPanStore = movie_camera1.pan;
   set(location_info,SHOW);
   while(time_passed < 7)
   {
   	movie_camera1.pan -= 0.5*time_step;
   	time_passed += time_step/16;
   	if (time_passed >= 0.1) str_cpy((location_info.pstring)[0],"Lo");
   	if (time_passed >= 0.2) str_cpy((location_info.pstring)[0],"Loc");
   	if (time_passed >= 0.3) str_cpy((location_info.pstring)[0],"Loca");
   	if (time_passed >= 0.4) str_cpy((location_info.pstring)[0],"Locat");
   	if (time_passed >= 0.5) str_cpy((location_info.pstring)[0],"Locati");
   	if (time_passed >= 0.6) str_cpy((location_info.pstring)[0],"Locatio");
   	if (time_passed >= 0.7) str_cpy((location_info.pstring)[0],"Location");
   	if (time_passed >= 0.8) str_cpy((location_info.pstring)[0],"Location:");
   	if (time_passed >= 0.9) str_cpy((location_info.pstring)[0],"Location: ");
   	if (time_passed >= 1) str_cpy((location_info.pstring)[0],"Location: C");
   	if (time_passed >= 1.1) str_cpy((location_info.pstring)[0],"Location: Ch");
   	if (time_passed >= 1.2) str_cpy((location_info.pstring)[0],"Location: Chi");
   	if (time_passed >= 1.3) str_cpy((location_info.pstring)[0],"Location: Chin");
   	if (time_passed >= 1.4) str_cpy((location_info.pstring)[0],"Location: China");
   	wait(1);
   }
   toggle(location_info,SHOW);
   vec_set(movie_camera1.x,vector(6474,5770,2609));
   movie_camera1.pan += 43;
   
   wait(-1);
   time_passed = 0;
   while(time_passed < 2)
   {
   	time_passed += time_step/16;
   	movie_camera1.x -= 50*time_step;
   	movie_camera1.tilt -= 0.25*time_step;
   	wait(1);
   }
   
   effect(p_explo1,1,vector(1921,7288,95),normal);
   
   toggle(movie_camera1,SHOW);
   set(camera,SHOW);
   p_able_to_move = 1;

}




Also, I want to know how to REMOVE objects like: views, panels....etc.

Last edited by The_KING; 06/20/13 10:42.