- Home /
Question by
Just4Fun · Oct 19, 2012 at 12:36 AM ·
How can i create anouther jump script?
Hi wanna create 1 jump Script for 1 animation , i tried out to create I doo this:
if (Input.GetKey (KeyCode.Space)){
if (jumpon==false){
jump0n=true;
_animation[jumpWeaponAnimation.name].speed = jumpAnimationSpeed;
_animation[jumpWeaponAnimation.name].wrapMode = WrapMode.ClampForever;
_animation.CrossFade(jumpWeaponAnimation.name);
} else {
_animation[jumpWeaponAnimation.name].speed = -landAnimationSpeed;
_animation[jumpWeaponAnimation.name].wrapMode = WrapMode.ClampForever;
_animation.CrossFade(jumpWeaponAnimation.name);
}
}
if(jump0n==true) {
_animation[jumpPoseAnimation.name].speed = jumpAnimationSpeed;
_animation.CrossFade(jumpPoseAnimation.name);
}else{
_animation[jumpWeaponAnimation.name].speed = jumpAnimationSpeed;
_animation.CrossFade(jumpWeaponAnimation.name);
}
}
But didn't work what i have to do to work fine?
Comment
Do you intentionally have both a jumpon and a jump0n variable?
The jumpon its my mistake.. i gonna see that and try again ty Gregzo
still not working :s somebody can tell me or $$anonymous$$ch me how to do it? what i wanna do is:
i create 2 jump's 1 the character have the weapon on the spine and the anouther the character have the weapon on the hand , i dont know how to create anouther jump script because im new on script >.<''
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Selecting and deselecting not working 0 Answers
Vehicle Script Debugging 1 Answer
Need a bit of help with my script (about 100 lines) 1 Answer