camera path

Posted By: Blackchuck

camera path - 08/27/09 10:59

how can I make a camera that moves path in lite-c???
Posted By: XD1v0

Re: camera path - 08/28/09 17:08

Easy way to make path is use entities, every entity is a node, set my.parent to next entity node for each entity laugh
Posted By: Blackchuck

Re: camera path - 08/29/09 15:00

Thats an good idee!!
Pleace tell me what I did wrong, I tryed to wright it in lite-c.


ENTITY* cam;

var center;
var max_speed = 7;

action fly_camera()
{
clip_size = 0;

vec_set (center, my.pos);

set(my,INVISIBLE);
set(my,PASSABLE);

camera.visible = off;
cam.tilt -= 20;
cam.pos_x = 0;
cam.pos_y = 0;
cam.size_x = screen_size.x;
cam.size_y = screen_size.y;
ent_path("campath");
ent_waypoint(my._target_x, 1);

my.x = my._target_x;
my.y = my._target_y;
my.z = my._target_z;

cutcamera.visible = on;

while(1)
{
cutcamera.x = my.x;
cutcamera.y = my.y;
cutcamera.z = my.z;
cutcamera.pan = my.pan;

vec_set(max_speed, my._target_x);
vec_sub(max_speed, my.x);

if (vec_to_angle(my.pan, max_speed);
{
ent_nextpoint(my._target_x);
}
}
}
Posted By: Ottawa

Re: camera path - 08/29/09 19:48

Hi!

You have to many C-Script code.

In the manual check the section on Migration. wink
Posted By: Blackchuck

Re: camera path - 08/29/09 20:11

How do you wright this in lite-c?

"vec_set (center, my.pos);"

Posted By: Cowabanga

Re: camera path - 08/29/09 20:26

Maybe you mean:
Code:
vec_set(camera.x,vector(0,0,0));


Posted By: badapple

Re: camera path - 08/30/09 07:38

your while loop has no wait
Posted By: Blackchuck

Re: camera path - 09/03/09 18:19

oh...
© 2024 lite-C Forums