Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Just4Fun · Oct 17, 2012 at 01:15 PM · animation

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

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image gregzo · Oct 17, 2012 at 08:21 PM 0
Share

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.

avatar image Just4Fun · Oct 17, 2012 at 08:22 PM 0
Share

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

avatar image gregzo · Oct 17, 2012 at 08:42 PM 0
Share

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.

avatar image flaviusxvii · Oct 17, 2012 at 10:03 PM 0
Share

Everyone is here for help. 'help' is an awful tag.

Choose the rare and relevant keywords from your problem and help us all out.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

what is the jump axis for if (Input.GetAxis(" ? ") 2 Answers

Unity animations not working 1 Answer

Weapon customize system 1 Answer

there is no 'animation' attached to the gameobject but a script is trying to access it 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges