|
bone animation
#270734
06/09/09 15:48
06/09/09 15:48
|
Joined: Jun 2008
Posts: 402 Germany
sebbi91
OP
Senior Member
|
OP
Senior Member
Joined: Jun 2008
Posts: 402
Germany
|
is it possible to animate 2 different bones with different animations?
I know its possible to animate the model and change bone angles! But is there a way to say the MOdel: bone Arm_left ==animate "take weapon" bone body ==animate "stand" ...
Thank you for your help ^^
3D-Gamestudio A8 - Commercial
|
|
|
Re: bone animation
[Re: sebbi91]
#273323
06/22/09 13:55
06/22/09 13:55
|
Joined: Jun 2008
Posts: 402 Germany
sebbi91
OP
Senior Member
|
OP
Senior Member
Joined: Jun 2008
Posts: 402
Germany
|
Arrggh .... And how could i manage the Animation for every Bone? I want to show 2 different Animations at the SAME time! It means walking leg-!bones!, standing Breast-!bone!,punching hand-!bones!!
It should be possible to walk with the player and manage the Hand animations!
The code you give me is only a blend over from 1 Animation to an other!
Any Idea to give a bone an Animation!
!bone! Arm_left ==animate "take weapon" !bone! body ==animate "stand" !bone! head ==animate "look_angry" !bone! legs==animate "walk"
Last edited by sebbi91; 06/22/09 13:55.
3D-Gamestudio A8 - Commercial
|
|
|
Re: bone animation
[Re: sebbi91]
#273345
06/22/09 15:27
06/22/09 15:27
|
Joined: Jun 2008
Posts: 402 Germany
sebbi91
OP
Senior Member
|
OP
Senior Member
Joined: Jun 2008
Posts: 402
Germany
|
I got informations about using ANM_ADD in my animations! Now my script looks like this:
.... if(key_w==1) { ent_animate(me,"walk",walkvar,ANM_CYCLE); walkvar+=3; } if(key_e==1) { ent_animate(me,"push",pushvar,ANM_ADD); } ...
The problem is the player adds the new Animation Angles to the old one and so the Arms rotate not correctly! They are now behind the player -.-
Any ideas?
3D-Gamestudio A8 - Commercial
|
|
|
Re: bone animation
[Re: the_clown]
#273613
06/23/09 16:51
06/23/09 16:51
|
Joined: Jun 2008
Posts: 402 Germany
sebbi91
OP
Senior Member
|
OP
Senior Member
Joined: Jun 2008
Posts: 402
Germany
|
thanks! I got it working! ^^
3D-Gamestudio A8 - Commercial
|
|
|
Re: bone animation
[Re: sebbi91]
#273614
06/23/09 16:52
06/23/09 16:52
|
Joined: Nov 2008
Posts: 946
the_clown
User
|
User
Joined: Nov 2008
Posts: 946
|
|
|
|
Re: bone animation
[Re: the_clown]
#280630
07/23/09 16:53
07/23/09 16:53
|
Joined: Jun 2008
Posts: 402 Germany
sebbi91
OP
Senior Member
|
OP
Senior Member
Joined: Jun 2008
Posts: 402
Germany
|
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
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
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|