Hi I have a problem with this function I can't wrap my head around it I don't seem to understand how to use it frown can somebody please help me understand this function?
Here is a simple script for walking
Code:
if(key_w == ON || key_d == ON || key_s == ON || key_a == ON){
		if(key_w == ON && key_s == ON || key_a == ON && key_d == ON){
			ent_animate(me,"stand",my.skill1,ANM_CYCLE);
				my.skill1+=5*time_step;
				my.skill1 %= 100;
				my.skill2 = 0;
		}else{
		
			ent_animate(me,"walk",my.skill2,ANM_CYCLE);
			if(my.skill2 <= 100){
				ent_blendframe(me,NULL,"walk",6,my.skill2);
			}
			my.skill2+=1*time_step;
		}
	} else{
		ent_animate(me,"stand",my.skill1,ANM_CYCLE);
		my.skill1+=5*time_step;
		my.skill1 %= 100;	my.skill2 = 0;
	}



it runs within a while loop but I can't get ent_blendframe to work properly. any suggestion? thanks a lot for reading.

Last edited by Theil; 09/16/12 15:42.