Animated TGA with action

Posted By: CBSection31

Animated TGA with action - 05/30/07 21:57

Hey everyone,

I have a few animated TGA files in my level, which have been placed in the level via WED, with the correct filename format (filename+number.tga). These animate perfectly in the level until I assign an action to them. As soon as I assign them an action, they no longer animate. Is there a piece of code I should place in the action statement that will keep them animating?

Thanks!
Posted By: tompo

Re: Animated TGA with action - 05/30/07 22:02

if (my.frame < (number after +)) {MY.FRAME += 1 *time_step;}
in loop should be enough
Posted By: nipx

Re: Animated TGA with action - 05/30/07 22:03

something like:


Code:
	
while(my.frame < <<yourNumberHere>>)
{
my.frame+=3*time_step;
wait(1);
}





nipx


edit: tompo, dont type so fast
Posted By: tompo

Re: Animated TGA with action - 05/30/07 22:27

sorry
Posted By: CBSection31

Re: Animated TGA with action - 05/30/07 22:31

Thanks!!! It works perfectly!
© 2024 lite-C Forums