new problem!

I have an basic animation (stand) and to seperat animations(Left_hand && right_hand)

My Script works fine with one ANM_ADD animation but if I use 2 ANM_ADD Animations my Player spins his arms totally in the wrong position!
here a code snippet
Quote:


function arm_animation()
{
...
if(slot_active_p2==0&&slot1_lefthand_used_p2==1&&...)
{
if(arm_right_angle_p2.tilt>=0 && arm_left_angle_p2.tilt>=0)
{
ent_bonerotate(my,"arm_up_left",arm_right_angle_p2);
ent_bonerotate(my,"arm_up_right",arm_right_angle_p2);
arm_right_angle_p2.tilt-=30*time_step;
}
if(arm_right_angle_p2.tilt<=0&&arm_left_angle_p2.tilt<=0)
{
arm_right_angle_p2.tilt=0;
arm_left_angle_p2.tilt=0;
}
...
//add her more animations that dont working
}

action player2()
{
...
//start basic animations
if(key_cuu-key_cud)
{
ent_animate(my, NULL, 0, 0);
walkanim_p2 += 6 * time_step;
ent_animate(my, "walk", walkanim_p2, ANM_CYCLE);
}
else
{
ent_animate(my, NULL, 0, 0);
standanim_p2 += 1 * time_step;
ent_animate(my, "stand", standanim_p2, ANM_CYCLE); /
}
if(key_cul-key_cur)
{
ent_animate(my, NULL, 0, 0);
walkanim_p2 += 6 * time_step;
ent_animate(my, "walk", walkanim_p2, ANM_CYCLE);
}

arm_animation();
..
}


Any Ideas?

regards Sebastian


3D-Gamestudio A8 - Commercial