i think this could work:
Code:
var hitleft = 0;
...

if(mouse_left==1 && hitleft ==0)
{
	hitleft = 1;
	ates_per = 0;
   	while(ates_per<99)
	{
		ent_animate(me,"5atak",ates_per,ANM_CYCLE);
   			ates_per += 1*time_step;
		wait(1);
	}
	ates_per = 100;
	ent_animate(me,"5atak",ates_per,ANM_CYCLE);
	hitleft = 0;
}



bit i think you should use me.skillXX instead of ates_per.. cause a global variable as frame counter is not effective in greater scenes with more animations laugh

Last edited by Espér; 07/09/12 04:48.

Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<