Ugh....ok....so I took the jump funtion out....added a state. And now...it runs through the entire jump animation (good!), but...doesn't actually raise the model up and down (the actual jump) until the animation is finished. Sooooo close...

Any ides....Beuller?

Here's the state:

Code:
if(my.STATE == 4)
{
	var jump_percentage = 0;
	while(jump_percentage < 100)
	{
		movedir.z = -jumpacc;
		ent_animate(my,"jump",jump_percentage,0);
		jump_percentage += 10*time_step;
		wait(1);
	}
	if(!key_space)
	{my.STATE = 1;}
}



Last edited by emo10001; 06/12/11 23:26.

"To one who has faith, no explanation is necessary. To one without faith, no explanation is possible." - St. Thomas Aquinas