Yeah but when using this code, the main-while is paused until the animation is done. If he does further movement fex in the main while, this wont work. And why do u use ent_animate again after the while ?
whats about this one. Full animation played from main-while without pausing it.
#define Satack skill100
#define ates_per skill99
function anm_me()
{
while(my)
{
if(my.Satack == 1) { my.ates_per += time_step; ent_animate(me, "Satak", my.ates_per, ANM_CYCLE); }
if(my.ates_per >= 100) { my.ates_per = 0; my.Satak = 0; }
wait(1);
}
}
action The_Player()
{
anm_me();
while(my)
{
if(mouse_left && my.Satack == 0) my.Satack = 1;
//further code in main while like movement whatever
wait(1);
}
}
Now if mouse_left is pressed the full animation will be displayed without pausing the main-while.
mfg