Hello,
when I use „ent_animate” the entity returns after
“var percent” is 100 to its first frames.
If I place many enemies in my level they aren’t stopping
their die frames until all enemies got no my._health left.
They die, stop, die again and when I killed all enemies
they die and then return to their first fame and stop.
Why? I use my.skill2 as the “var percent” so they
should be independent.
And why don’t they stop at their last die frame?
The same strange effect can be found at my gun.
It moves and then it moves the first frame again
(but the “var percent” is limited to 100 and then the
animation should stop)
What’s wrong with ent_animate the way I try to use it?
Code:
action enemy(){
my._health=100;
while(my._health>0){
wait(1);}
my.skill2=0;
while(my.skill2<100){my.skill2+=5*time;if(my.skill2>100){my.skill2=100;}
ent_animate(me,"die",my.skill2,ANM_cycle);wait(1);}
my.passable=ON;}
My gun uses vertex animations and my enemy uses bones.