I have this model that i place random in my level.
I need it to move automaticly but it should always move to 0 on the y axis so the models are placed in the air then go down to a cetain hight but always should land on the middle of the screen on the y


Code:
action landing_ufo()

{

	set(my,SHADOW | METAL | POLYGON);
	ufo=me;

	while(1)
	{
		c_move(my, vector(15 * time_step, 0, 0), nullvector, NULL | IGNORE_SPRITES | IGNORE_PASSABLE);
		
		my.z -=2* time_step;


		camera.x = ufo.x+100; 

		camera.z =  1000; 
		camera.tilt = -90;
		wait(1);
		if(plane.z <= -12){

			you_madeit();

			break;
			wait(1);

			
			
		}
	}




any help would be highly aprreciated as it is for a next retro workshop game i have almost finished laugh

Last edited by Realspawn; 07/31/15 15:21.

Find all my tutorials & Workshops at : www.rp-interactive.nl

Creativity starts in the brain