- Home /
Jump Script
Hi im new on the unity 3d and i just know anythings about scripts , i wanna create anouther script for anouther animation of jump , i wanna have 2 animations of jumping , for example when the character have the shild on the back jump and when the character have the shield on the hand jump , and i dont know how to do that , all the attempts i tryed to create the script all the times it give errors
i create this script but dosnt work :S
}
if (jump==false){ jump=true; _animation[jumpWeaponAnimation.name].speed = jumpAnimationSpeed; _animation[jumpWeaponAnimation.name].wrapMode = WrapMode.ClampForever; _animation.CrossFade(jumpWeaponAnimation.name); } else { _animation[jumpWeaponAnimation.name].speed = -landAnimationSpeed; _animation[jumpWeaponAnimation.nameame].wrapMode = WrapMode.ClampForever; _animation.CrossFade(jumpPoseAnimation.name); } } if (Input.GetKey (KeyCode.V)){ }
}
And what i can do to improve my script? thanks for your time respects
You'll get more answers if you don't post huge scripts but just the part that is giving you grief. People's time is limited, and few will want to take a break to read your whole script. Where is the error? What is your strategy? Edit your question accordingly, you'll get help.
i wanna do a script for 1 animation "jump" and i new and i dont know how :S for example: For 1 Jump animation the character have the shield on the hand And for the anouther have the shield on the spine
Follow my advice. Ask questions about one aspect of your problem. Don't expect someone to write the whole script for you. Try first to write 2 jump scripts, one for each case.
Everyone is here for help. 'help' is an awful tag.
Choose the rare and relevant keywords from your problem and help us all out.