Not enough information about what you want to get...

But you might want to try something like this:

Code:
while(1)
{
	if(mouse_left) // Left Mouse Button pressed
	{
		var vurus1 = 0;
		
		while(vurus1 < 100)
		{
			ent_animate(my,"5atak",vurus1,ANM_CYCLE);
			vurus1 += 2 * time_step;
			wait(1);
		}
		
		while(mouse_left) wait(1); // Wait until mouse_left is released
	}
	
	wait(1);
}




POTATO-MAN saves the day! - Random