Hi All,

Can we combine both bone animation and vertex animation inside a loop?

I provided the code snippet but as what I've noticed, it's only the vertex animation that works but the bone animations don't.. I try to read the manual on this but fails for many tries..

Assumes all variables used are already defined..
Code:
void	catcher_animate()
{
	//controls the speed of the propeller animation - bones
	my._propellerspeed = speed_percentage * 100;
	ent_bonerotate(my, anim_LeftTurbine, vector(my._propellerspeed, 0, 0));
	ent_bonerotate(my, anim_RightTurbine, vector(my._propellerspeed, 0, 0));
	
	//controls the turning angle of the submarine - vertex animation
	// I need to handle animation turn here since I don't need a full turning
	my._angleturn = 30*steering_percentage;	//there are 30 animation frames in turning the submarine
	if (my._angleturn < 0) { ent_animate(me, "TurnLeft", my._angleturn, ANM_CYCLE); } //turn left -value
	else { ent_animate(me, "TurnRight", my._angleturn, ANM_CYCLE); } //turn right - value
}



Edited: This function is called inside a while loop..

How can I let the 2 animations run simultaneously??

Please advise..

Last edited by seecah; 09/23/09 13:17.


Can't is not an option™