Ok i fixed it (sort of) i moved the while


Code:
function bounce_event() 
{
  if (event_type == EVENT_IMPACT)
  {
      while (1)       
     {
 ent_animate(guard2, "death", death_percentage, 0); // "death" one-shot animation 
		death_percentage += .05 * time_step; // 2  = animation speed for "death"
		wait (1);
	} 
      
  }
}   




Last edited by GamerX; 08/27/08 02:26. Reason: fixed the speed problem

"You may never know what results come of your action, but if you do nothing there will be no result."
-Mahatma Gandhi