Hi, I wanted to know if anyone can help me make a simple elevator without for it is using skills
i did this.
action ascensor()
{
my.emask =ENABLE_IMPACT;
proc_mode=PROC_EARLY;
var senal=0;
var senal_l=1;
//if(event_type == EVENT_IMPACT)if i use this way, the elevstor is not move
//if(you==player)
senal=1;
var alt=0;
while(1){
if (senal==1){
if (senal_l==1){ move_vec[2] += alt; my.z=alt *time_step;alt=alt+1;}
if (alt>=10)
senal_l=0;
if (senal_l==0){move_vec[2] += alt;my.z=alt *time_step;alt=alt-1;}
if(alt<=-100)
senal_l=1;
}
wait(1);
move_vec2 is the player.z
the problem is the next:
the player can walk around the level without any problem.But when the player is on the elevator and Elvador is go up . The camera begins to flash. however when elevator is go down and the player stay on the elevator the camera does not do this.
http://www.mediafire.com/?h50f2e3ps318ec8 link for download the program if you like.
i appreciate any help