I'am back,
Ok, what I want is to open the door. The animation for doing that is from frame 1 to 20. Then from frame 21 to 40 is where the door comes down or close. here is some new code for opening the door.
action vertex_anim()
{
{
my.frame += .08*time_step; // gives 16/1.5 = 12 frames per second
my.frame %= 20; // don't exceed the number of frames
my.frame = 1; // set to start frame
while (1) {
my.frame += time_step; // 16 frames per second
if (my.frame > 19) { my.next_frame = 20; } // interpolate to start frame
else { my.next_frame =20; } // interpolate to FRAME+1
if (my.frame >=20) { my.frame -= 20; } // if end frame reached, skip back
wait(1);
}
This runs to fram 20 then gos back to frame 0 and starts over again. I want it to start at frame 0 or 1 and go to frame 20 and stop the anim. there. How can i do that????
Thank you
renny